Web APIs
Response.status
Numeric response status; constructed 204 responses must have no body.
Formal Syntax & Structure
javascript syntaxjavascript
response.statusReturn Value
number
HTTP status code, or 0 for filtered/error responses.
Working Example
Example Snippetjavascript
(async () => {const r=new Response(null,{status:204});console.log(r.status,r.ok,r.body===null);})()