Welcome! Log In Create A New Profile

Advanced

HTTP/2 custom status codes

Sharan J
August 09, 2017 11:18AM
Hello,

I am using Nginx as a reverse proxy and have enabled HTTP/2. For a
particular request, my back-end server sends a custom 4 digit status code
(say 9999).

When connecting via HTTP/1.1, the exact status code is returned to the
client but, when connection via HTTP/2, the response headers along with the
status(9999) sent by my back-end server is sent in the body and the header
has the status code 000.

The same works fine if the custom status code is 3-digit (say 999). I know
the standard is to use 3 digit status code but, why does Nginx sends the
back-end server's response headers in the body? Please help me understand
what exactly is happening.

Thanks,
Shanthu
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

HTTP/2 custom status codes

Sharan J August 09, 2017 11:18AM

Re: HTTP/2 custom status codes

Maxim Dounin August 09, 2017 11:38AM

Re: HTTP/2 custom status codes

Sharan J August 09, 2017 12:28PM

Re: HTTP/2 custom status codes

Maxim Dounin August 09, 2017 01:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 121
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready