If the response status of the request is one of 400, 401 and 503 then the module fires the error event and the error object contains the statusCode property with the value of the received HTTP status code. Take a look at the following example: