status property

Contains the status code of the response.

This property is read-only.

Syntax

JavaScript
stat = object.status

 

Property values

Type: short

An unsigned short that indicates the status of the response.

Standards information

Remarks

A null body status is a status of 101, 204, 205, or 304.

An ok status is a status between the range of 200 to 299, inclusive.

A redirect status is a status of 301, 302, 303, 307, or 308.

The status property is set to 200 by default for a response.

See also

Response