By default, when the WAF blocks a request due to a matched rule, it returns a 403 status code with a "The request is blocked" message. As with WAF with Azure Front Door, now customers can also define a custom response status code and message with Application Gateway when WAF blocks a request. This customization is a policy-level setting, ensuring that all blocked requests receive the same custom response status and message.
Learn more.