status property

int get status

@AvailableInWorkers("window_and_worker_except_service")

The read-only XMLHttpRequest.status property returns the numerical HTTP status code of the XMLHttpRequest's response.

Before the request completes, the value of status is 0. Browsers also report a status of 0 in case of XMLHttpRequest errors.

Implementation

external int get status;