Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have to send a client friendly response to client if he calls method which is not available in REST API. Kindly let me know how to handle such requests and error and exception handling in REST API using .Net

What I have tried:

I am checking on google. If found will post answer.
Posted
Updated 19-Nov-19 20:27pm

1 solution

Create exception filter to catch unhandled exceptions: How to handle errors in ASP.Net Web API | InfoWorld[^]

Some words about the how you should build your error response: REST API Error Handling - Problem Details Response[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900