Custom error responses
Custom error responses, powered by the , allow you to define custom responses for errors returned by an origin server or by a Cloudflare product (including Workers). Custom error responses will apply to responses whose HTTP status code is greater than or equal to 400 that match the expression of the custom error response rule.
How it works
When a custom error response is triggered, Cloudflare will replace the body and (optionally) the HTTP status code of the response sent to the visitor. Cloudflare will keep any existing HTTP response headers except for
Custom error responses are available in beta to all paid plans. The exact features depend on your Cloudflare plan:
|Custom error responses||No||Yes||Yes||Yes|
|Number of custom error response rules||—||5||20||50|