• Overview
@angular/common/http

HttpErrorResponse

Class

A response that represents an error or failure, either from a non-successful HTTP status, an error while executing the request, or some other failure which occurred during the parsing of the response.

  
    class HttpErrorResponse extends HttpResponseBase implements Error {}
  
  

message

string

error

any

ok

false

Errors are never okay, even when the status code is in the 2xx success range.

All response headers.

status

number

Response status code.

statusText

string

Textual description of response status code, defaults to OK.

Do not depend on this.

url

string | null

URL of the resource retrieved, or null if not available.

Type of the response, narrowed to either the full response or the header.

Jump to details