Response.prototype.status

The HTTP status code of the response.

Syntax

status

Examples

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