axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nikki (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-3879) Ability to change the http status code in the response being sent to the client
Date Mon, 30 Jun 2008 18:39:44 GMT
Ability to change the http status code in the response being sent to the client
-------------------------------------------------------------------------------

                 Key: AXIS2-3879
                 URL: https://issues.apache.org/jira/browse/AXIS2-3879
             Project: Axis 2.0 (Axis2)
          Issue Type: Improvement
          Components: transports
    Affects Versions: 1.4
            Reporter: nikki


Hello

I'd like the ability to change the http status code in the reponse. For example : I'd like
to send in certain cases an http 503 (instead of a 500) when a soap fault occurs. Another
of my needs is to send a 202 (instead of 200 for an in-out operation.)

Here's what i attempted which didn't work & I was suggested by Saminda to open a JIRA.

 HttpServletResponse resp =  (HttpServletResponse) 
 msgContext.getCurrentMessageContext().getProperty(org.apache.axis2.transport.http.HT TPConstants.MC_HTTP_SERVLETRESPONSE);

if (resp != null) {
 System.out.println("Resp not null ");
 resp.setStatus(503 );
 }
 thankyou



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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message