XMLHttpRequest.statusText property returns a
DOMString containing the response's status message as returned by the HTTP server. Unlike
XMLHTTPRequest.status which indicates a numerical status code, this property contains the text of the response status, such as "OK" or "Not Found". If the request's
readyState is in
OPENED state, the value of
statusText will be an empty string.
If the server response doesn't explicitly specify a status text,
statusText will assume the default value "OK".
Note: Responses over an HTTP/2 connection will always have a empty string as status message as HTTP/2 does not support them.