Question

2
Replies
132
Views
liang Member since 2019 10 posts
PEGA
Posted: June 11, 2020
Last activity: June 11, 2020

How to customize 404 and 500 error messages in rest service?

Hi, 

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.

 

 404 Not Found Error

404 Error

500 Internal Error

500 Internal Error

Pega Platform Data Integration
Share this page LinkedIn