Krika
Krika

Reputation: 463

HTTP2 protocol and status messages

So I just found out the hard way that the HTTP/2 protocol does not support HTTP status messages like 404 **Not Found** in the old HTTP/1.1 protocol. One of our Web API's is using the HTTP status message to return a readable message to the end user.

Now my question is, is there a new way of returning status messages in HTTP/2 or do we have to return the message in the HTTP response body?

Upvotes: 13

Views: 3491

Answers (1)

Julian Reschke
Julian Reschke

Reputation: 41997

There is no new standard way, thus either a custom response header or the message body are your only choices.

(For the record: I argued against this change)

Upvotes: 14

Related Questions