# RequestErrorEvent

#### new Cesium.RequestErrorEvent(statusCode, response, responseHeaders)
engine/Source/Core/RequestErrorEvent.js 15

An event that is raised when a request encounters an error.

Name | Type | Description
--- | --- | ---
`statusCode` | number | optional The HTTP error status code, such as 404.
`response` | object | optional The response included along with the error.
`responseHeaders` | string | object | optional The response headers, represented either as an object literal or as a string in the format returned by XMLHttpRequest's getAllResponseHeaders() function.

### Members

#### response : object
engine/Source/Core/RequestErrorEvent.js 30

The response included along with the error. If the error does not include a response, this property will be undefined.

#### responseHeaders : object
engine/Source/Core/RequestErrorEvent.js 38

The headers included in the response, represented as an object literal of key/value pairs. If the error does not include any headers, this property will be undefined.

#### statusCode : number
engine/Source/Core/RequestErrorEvent.js 22

The HTTP error status code, such as 404. If the error does not have a particular HTTP code, this property will be undefined.

### Methods

#### toString() → string
engine/Source/Core/RequestErrorEvent.js 51

Creates a string representing this RequestErrorEvent.

##### Returns:

A string representing the provided RequestErrorEvent.

Need help? The fastest way to get answers is from the community and team on the Cesium Forum.