Search code examples
apachehttphttp2statushttp-1.1

Why does HTTP/2 show a different type of header for status codes like 404


Why does HTTP/2 show a different type of header for status codes like 404 e.g:

When I curl a HTTP/2 compatible webserver for a file that doesn't exist, I get

HTTP/2 404
.....other headers

When I curl a HTTP/1.1 webserver for a file that doesn't exist, I get

HTTP/1.1 404 Not Found
.....Other headers

My question is, why does HTTP/2 remove/avoid the text "Not Found" for a 404?

My question is not about the version.

Thanks.


Solution

  • There is no reason phrase in the HTTP/2 protocol.