@@ -16,9 +16,13 @@ Preferred content type | Format of _Block_ action response
`text/plain` | Plain text
Other / Not defined | HTML
The WAF will consider any quality factor values (`;q=<VALUE>`) specified in the `Accept` header when determining the preferred content type. For more information on quality factor values, refer to the [MDN documentation](https://developer.mozilla.org/en-US/docs/Glossary/Quality_values).
## Custom response
You can define a custom response for blocked requests. A custom response has the following settings:
You can define a custom response for blocked requests. When you configure a custom response, the value of the `Accept` header will be ignored.
A custom response has the following settings:
***Response type**: Choose a content type or the default block response from the list. The available custom response types are the following:
...
...
@@ -29,5 +33,5 @@ You can define a custom response for blocked requests. A custom response has the
| Custom JSON | `"application/json"` |
| Custom XML | `"text/xml"` |
***Response code**: Choose an HTTP status code for the response, in the range 400-499. The default response code is 403.
***Response code**: Choose an HTTP status code for the response, in the range 400-499. The default response code is `403` for [custom rules](/waf/custom-rules/) and `429` for [rate limiting rules](/waf/rate-limiting-rules/).
***Response body**: The body of the custom response. Configure a valid body according to the response type you selected.