Response.prototype.statusText

The status text of the response corresponding to the HTTP status code.

Syntax

statusText

Examples

fetch('https://example.com/404').then(r => print(r.statusText))
Not Found