Tag Archives: Exception Handling

Error Handling in WCF RESTful Service

WCF possesses the capability to handle errors for RESTful services and return appropriate HTTP status code as well as error details using standard formats like JSON or XML. So, WebFaultException is the class used to return: HTTP status code only, or HTTP status code and user-defined type. We can define a custom type for error […]