Q:

Is it possible to set custom status message (in utf-8) in http status header?

I want to change http status header with my own status message. For example, change HTTP/1.1 200 OK to HTTP/1.1 200 custom status message in utf-8. To do it, I send some headers with php:
Content-Type: text/html; charset=UTF-8
HTTP/1.1 200 custom status message in utf-8

But in Chrome developer tools I see status message in wrong encoding, for example Status Code:200 Ð£Ð¿Ñ! Ð§ÑÐ¾-ÑÐ¾. Is it possible to fix this?

A:

(a) the encoding is undefined, so it's not worth trying non-ASCII, furthermore, (b) the reason phrase does not exist anymore in in HTTP/2.

