Posted: 11 Jun 2020 3:27 EDT Last activity: 11 Jun 2020 20:45 EDT
How to customize 404 and 500 error messages in rest service?
2 questions about how to customize Rest Service related error message.
1. when the client input a incorrect rest service url, it will return a [404 Not Found] error and [Resource not found] in response body. Is that possible to customize the message in body part?
2. When a rest service request was sent to server side, while the maximum requestor number has already been reached, it will get an [500 Internal Server Error]. Is that possible to customize the error code and message to another, so it will be easy to understand the cause.