Define error reponses for your APIs.
The Error Response allows you to specify a response that will be sent back to the client when an error occurs during the API endpoint execution. You are able to set a
Response Header as well as a
Response Body to provide additional information to the client.
For the Error Response, choose a
4xx status code for client errors and
500 for server errors.
Lastly, through the toggle you are able to allow further action blocks to be executed after a response has been sent.
Down below you can see an error response in it’s most simple form: