0

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.

Example person
  • 3,198
  • 3
  • 18
  • 45

1 Answers1

1

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

Julian Reschke
  • 40,156
  • 8
  • 95
  • 98