Last post Aug 12, 2014 03:55 AM by Shawn - MSFT
Aug 11, 2014 12:21 AM|pawarpravinb|LINK
We have used RESTFul services in our project which consists of normal error handling which we use in C#.
Based on my understanding; we need to use FaultContract to handle errors in Service layer so that channels will NOT go in faulted state.
As this is RESTFul service; I'm NOT sure how much FaultContract will help in service layer. Please let me know your suggestions for best error handling in RESTFul seervices.
Thanks in adavance
Aug 12, 2014 03:55 AM|Shawn - MSFT|LINK
A major element of web services is planning for when things go wrong, and propagating error messages back to client applications. However, unlike SOAP, REST-based web services do not have a well-defined convention for returning error messages. And below
are four different alternatives for handling errors within the following link:
Besides, you could also refer to the below links for more information: