Should my WCF webservice return a 500 or 200 http code (soap fault / functional return message)

Posted by Tim Mahy on Stack Overflow See other posts from Stack Overflow or by Tim Mahy
Published on 2010-04-29T07:37:35Z Indexed on 2010/04/29 7:47 UTC
Read the original article Hit count: 447

Filed under:
|
|

Hi all,

after reading the SOAP specs, it states that a SOAP Fault should return a http 500 errorcode, so when a SoapException is thrown, WCF returns a 500 error code.

Now, I'm looking for some best practices to when return a functional soap error message and when to return a SOAP Fault.

What would you guys return when a functional error occurred while processing the message because of the input message contains some functional errors, a 500 SOAP Fault or a 200 Soap response containing some error message ?

© Stack Overflow or respective owner

Related posts about wcf

Related posts about soap