On my project, I've some hardcoded HTTP status codes and descriptions, such as:
$this->output->set_header("HTTP/1.1 422 Unprocessable entity");
And I'm not clear about Section 8.1.3 of HTTP/2 specs because it looks like a HTTP/2 server doesn't return anymore the full header line (protocol, status code, and status description). For example:
HTTP/1.1 200 OK
Content-Type: image/jpeg
Content-Length: 123
Would become:
HEADERS
+ END_STREAM
+ END_HEADERS
:status = 200
content-type = image/jpeg
content-length = 123
When using my demo, browsers don't look to be bothered by responses starting by "HTTP/1.1".
So I am wondering if it is urgent to rely on the framework for returning a proper status code (the framework builds a string starting by $_SERVER['SERVER_PROTOCOL']). See this SO question for implementation. Or if it doesn't matter.