If you are returning a SOAP Fault, you are required to return a 500
Status code, even if the error is related to security. From the WS-I
BP:

 R1126   An INSTANCE MUST return a "500 Internal Server Error" HTTP
status code if the response envelope is a Fault.



On Mon, 21 Mar 2005 13:39:21 -0600, Gregory G Carter <[EMAIL PROTECTED]> wrote:
> Err.....no.
> 
> Not to be totally unpleasant or anything but, the status codes exist for
> a reason.
> 
> 500 means internal server error which means your WS has a problem or the
> server has.
> 
> More than likely your WS framework is not constructed properly.
> 
> Perhaps if you could explain the problem a bit more we can discuss a
> solution within a software engineering context that makes sense for your WS.
> 
> However, just a note.  You don't break the framework/api to correct
> application design errors.
> 
> :-)
> 
> -gc
> 
> Sathish Kumar wrote:
> 
> > Hi all,
> >
> > How can i change the Response status code in Axis handlers?
> > When there is an error, the response contains the soap fault. But, the
> > response header shows status code as 500 (internal server error).
> > I wanted to change the status code to 403(forbidden).
> > How could i do it ?
> >
> > Regards,
> > Sathish
> 
>

Reply via email to