camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (CAMEL-2519) camel-jetty - When returning an exception then allow to use custom http error code from Exchange.HTTP_RESPONSE_CODE
Date Thu, 04 Mar 2010 09:09:44 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-2519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58024#action_58024
] 

Willem Jiang edited comment on CAMEL-2519 at 3/4/10 9:09 AM:
-------------------------------------------------------------

Revert my patch ,  http://svn.apache.org/viewvc?rev=918901&view=rev
As the fix caused some side effect, as we can't resolve the Exchange.HTTP conflict without
breaking the back compatible.

      was (Author: njiang):
    As the fix caused some side effect, as we can't resolve the Exchange.HTTP conflict without
breaking the back compatible.
  
> camel-jetty - When returning an exception then allow to use custom http error code from
Exchange.HTTP_RESPONSE_CODE
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2519
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2519
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-jetty
>    Affects Versions: 2.2.0
>            Reporter: Claus Ibsen
>            Assignee: Willem Jiang
>            Priority: Minor
>             Fix For: 2.3.0
>
>
> By default camel-jetty will use http error code 500. But end user may override and set
a specific error code to use instead
> See nabble:
> http://old.nabble.com/Return-exception-message-in-HTTP-body-ts27757151.html
> For example in DSL directly
> {code}
> onException(ValidationException).setHeader(Exchange.HTTP_RESPONSE_CODE, constant(HttpServletResponse.SC_BAD_REQUEST));
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message