Multiple choice technology programming languages

Which class should be used to Handle exception in WCF Web Http Services(RESTFull Service)?

  1. FaultException

  2. RESTException

  3. WebFaultException

  4. WebHttpFaultException

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

WebFaultException is the specific exception type for WCF RESTful services (WebHttpBinding). It allows returning HTTP status codes along with fault information. FaultException is for SOAP services. RESTException and WebHttpFaultException do not exist in WCF.