April 2025posted on 04.12.2025Fetch Response.statusText Ever wondered why Response.statusText returns an empty string? It's because it is not part of the HTTP/2 spec. HTTP/2 does not define a way to carry the version or reason phrase that is included in an HTTP/1.1 status line. Otherwise, in HTTP/1 it will return status message such as OK, Continue and Not Found. Reference: RFC 7540 whatwg/fetch#599 No reactions yet
Fetch Response.statusText
Ever wondered why Response.statusText returns an empty string? It's because it is not part of the HTTP/2 spec.
Otherwise, in HTTP/1 it will return status message such as
OK,ContinueandNot Found.Reference: