Welcome! Log In Create A New Profile

Advanced

Re: Unknown 428 http status code description via nginx

Sergey Kandaurov
June 02, 2022 09:52AM
> On 1 Jun 2022, at 16:32, libresco_27 <nginx-forum@forum.nginx.org> wrote:
>
> Hello,
>
> I added 428 as an allowed http status code that can be returned from nginx.
> But when I access this from postman/insomnia the status code description
> comes out to be "unknown". eg - HTTP/1.1 428 Unknown, instead of HTTP/1.1
> 428 Precondition Required
> From my nginx gateway, I am just returning the status code and no
> description. And this works fine for all the other status codes.
>
> [..]

The reason phrase, that's the status code description, is an optional
part of the status line in HTTP/1.1, it doesn't present in subsequent
HTTP versions. Moreover, citing the relevant parts of RFC:

- The reason-phrase element exists for the sole purpose of providing
a textual description associated with the numeric status code
- the reason-phrase .. might be translated for a given locale,
overwritten by intermediaries, or discarded

So it should be fine to have it absent.

--
Sergey Kandaurov

_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

Unknown 428 http status code description via nginx

libresco_27 June 01, 2022 08:32AM

Re: Unknown 428 http status code description via nginx

Sergey Kandaurov June 02, 2022 09:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
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