I am developing a web service (in asp.net), and I would like every web method report to call it when an internal error has occurred - for example, when input validation fails.
When I expose my web service using SOAP, such errors can be reported by throwing a SoapException. But what if I expose my web service using a simple POST (aka Http-Post)? Besides returning an HTTP status code with an error of 500, is there a standard for reporting errors or throwing exceptions in this case?
source share