InterviewSolution
Saved Bookmarks
| 1. |
Explain method to handle error using HttpError in Web API? |
|
Answer» CreateErrorResponse is an extension METHOD that can be USED in Web API controller methods to RETURN error codes and error MESSAGES. It creates an HttpError object and then wraps it inside an HTTPRESPONSEMESSAGE object. |
|