Example person
Example person

Reputation: 3346

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.

Upvotes: 0

Views: 3061

Answers (1)

Julian Reschke
Julian Reschke

Reputation: 41997

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

Upvotes: 1

Related Questions