One can use HttpResponseException, HttpError, Exception filters, register exception filters, Exception handlers to handle errors. Exception filter can be used to identify unhandled exceptions on actions or controllers, exception handlers can be used to identify any type of unhandled exception application-wide, and HttpResponseException can be used when there is the possibility of an exception.
Subscribe to:
Post Comments (Atom)
Web API Versioning.
Implement the new feature without impacting the existing consumers we can solve this problem by API versioning. When the business has start...
-
Content negotiation is basically a process of selecting the best representation from multiple representations that are available for a giv...
-
One can register exception filter globally using following code: Web API global filters are registered through the HttpConfiguration obj...
-
What is JWT Token? JWT stands for Jason Web Token. Token-based security is commonly used in today’s security architecture. There are severa...
No comments:
Post a Comment