nginx/nginx · error

NGX_HTTP_PARSE_INVALID_HEADER

NGX_HTTP_PARSE_INVALID_HEADER

Error message

NGX_HTTP_PARSE_INVALID_HEADER

What it means

Error "NGX_HTTP_PARSE_INVALID_HEADER" thrown in nginx/nginx.

Source

Thrown at src/http/ngx_http_request.h:62

#define NGX_HTTP_TRACE                     0x00008000
#define NGX_HTTP_CONNECT                   0x00010000

#define NGX_HTTP_CONNECTION_CLOSE          1
#define NGX_HTTP_CONNECTION_KEEP_ALIVE     2


#define NGX_NONE                           1


#define NGX_HTTP_PARSE_HEADER_DONE         1

#define NGX_HTTP_CLIENT_ERROR              10
#define NGX_HTTP_PARSE_INVALID_METHOD      10
#define NGX_HTTP_PARSE_INVALID_REQUEST     11
#define NGX_HTTP_PARSE_INVALID_VERSION     12
#define NGX_HTTP_PARSE_INVALID_09_METHOD   13

#define NGX_HTTP_PARSE_INVALID_HEADER      14


/* unused                                  1 */
#define NGX_HTTP_SUBREQUEST_IN_MEMORY      2
#define NGX_HTTP_SUBREQUEST_WAITED         4
#define NGX_HTTP_SUBREQUEST_CLONE          8
#define NGX_HTTP_SUBREQUEST_BACKGROUND     16

#define NGX_HTTP_LOG_UNSAFE                1


#define NGX_HTTP_CONTINUE                  100
#define NGX_HTTP_SWITCHING_PROTOCOLS       101
#define NGX_HTTP_PROCESSING                102
#define NGX_HTTP_EARLY_HINTS               103

#define NGX_HTTP_OK                        200
#define NGX_HTTP_CREATED                   201

View on GitHub (pinned to 3f6f7824d4)

When it happens

Trigger: Thrown at src/http/ngx_http_request.h:62 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nginx/nginx@3f6f7824d4 (2026-08-22). Data as JSON: /api/errors/b36cc3784e45363d. Report an issue: GitHub.