From 86e104d68c1cb2a231b1f3067b27991039fc91eb Mon Sep 17 00:00:00 2001 From: Pedro Sousa <680496+pedrosousa@users.noreply.github.com> Date: Tue, 3 Jan 2023 18:03:12 +0000 Subject: [PATCH] Update text based on feedback --- content/waf/reference/response-blocked-requests.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content/waf/reference/response-blocked-requests.md b/content/waf/reference/response-blocked-requests.md index 134a73a6c..d7ea11773 100644 --- a/content/waf/reference/response-blocked-requests.md +++ b/content/waf/reference/response-blocked-requests.md @@ -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. -- GitLab