The fault handling policy provides a way to customize the error response and to remove sensitive information in the data that is sent back to the client.
The rules configured in the policy define conditions based on which it is possible to determine when a policy has to be executed at runtime.
This policy is an extension of the Build Message policy and helps in setting the error response code and error response phrase.
Configuration
Add rules by referring to the Configuring Rule section.
Refer to the Build Message section for property descriptions.
Figure 1: Fault Handling Policy Configuration attributes
Example
The Handling Errors example demonstrates how 404 (Not found) errors can be customized so that the API user is provided with a customized JSON response.