HTTP status code (e.g. 404)
HTTP status text (e.g. "Not Found")
Parsed response body
Response headers
Optional context: FejContextOptional Readonly originalOptional Readonly contextOptional Readonly statusReadonly statusHTTP status code (e.g. 404)
Readonly statusHTTP status text (e.g. "Not Found")
Readonly dataParsed response body
Readonly headersResponse headers
Error thrown when an HTTP response has a 4xx or 5xx status code
Thrown by convenience methods (.get, .post, etc.) when
throwHttpErrorsis enabled (default). Extends FejError soinstanceof FejErrorstill catches HTTP errors.Example