HTTP directives
proxy_intercept_errors directive (HTTP)
Let Nginx handle qualifying origin responses (status 300 or higher) with configured error pages. Preserve API status semantics. Context: http, server, location. Documented default: off. Version: Introduction not established. OSS documentation; verify build and version. A matching error_page is necessary for custom handling. Partial configuration for an isolated synthetic lab; not a production policy.
Formal Syntax & Structure
nginx syntaxnginx
proxy_intercept_errors on | off;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| state | on | off | Select whether this behavior is enabled. |
Working Example
Example Snippetnginx
proxy_intercept_errors on;