{"@odata.context":"https://relcomms-prod-dagnegedescbeefs.b02.azurefd.net/api/v2/$metadata#Azure/$entity","id":"569504","productCategories":["Networking","Security"],"tags":["Security","Feature"],"products":["Application Gateway","Web Application Firewall"],"generalAvailabilityDate":"2026-08","previewAvailabilityDate":null,"privatePreviewAvailabilityDate":null,"title":"Generally Available: Custom block response code and body for Application Gateway WAF ","description":"<p>Announcing the&nbsp;General&nbsp;Availability&nbsp;of custom block response code and body for WAF integrated with Application&nbsp;Gateway&nbsp;</p><p>Azure WAF&nbsp;integrated with Application&nbsp;Gateway&nbsp;now supports customizable response status codes and bodies for blocked requests, enabling greater flexibility and&nbsp;control.&nbsp;</p><p>By default, when the WAF blocks a request due to a matched rule, it returns a&nbsp;403 status&nbsp;code with a \"The request is blocked\" message.&nbsp;As with&nbsp;WAF with Azure Front&nbsp;Door,&nbsp;now&nbsp;customers can&nbsp;also&nbsp;define a custom response status code and message&nbsp;with Application Gateway&nbsp;when WAF blocks a request.&nbsp;This customization is a policy-level setting, ensuring that all blocked requests receive the same custom response status and message.&nbsp;</p><p>For further details, please reach out to the Azure WAF product team.</p><p></p><p><a href=\"https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/configure-custom-response-code\">Learn\nmore</a>.&nbsp;&nbsp;</p><p></p>","status":"Launched","created":"2026-08-24T17:25:03.0751952Z","modified":"2026-08-24T17:25:03.0751952Z","locale":null,"availabilities":[{"ring":"General Availability","year":2026,"month":"August"}]}