File

src/lib/any-http-error/any-http-error-dialog-data.ts

Index

Properties

Properties

body
body: any
Type : any
Optional
error
error: any | null
Type : any | null
headers
headers: Record<string | string[]>
Type : Record<string | string[]>

All response headers.

message
message: string
Type : string
method
method: string
Type : string
name
name: string
Type : string
ok
ok: boolean
Type : boolean

Whether the status code falls in the 2xx range.

stack
stack: string
Type : string
Optional
status
status: number
Type : number

Response status code.

statusText
statusText: string
Type : string

Textual description of response status code, defaults to OK.

Do not depend on this.

timestamp
timestamp: number
Type : number
type
type: HttpEventType.Response | HttpEventType.ResponseHeader
Type : HttpEventType.Response | HttpEventType.ResponseHeader

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

url
url: string | null
Type : string | null

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

import {
  HttpEventType,
  HttpHeaders,
} from '@angular/common/http';

export interface AnyHttpErrorDialogData {
  method: string;
  body?: any;
  stack?: string;
  error: any | null;
  message: string;
  name: string;
  timestamp: number;
  /**
   * All response headers.
   */
  headers: Record<string, string[]>;
  /**
   * Response status code.
   */
  status: number;
  /**
   * Textual description of response status code, defaults to OK.
   *
   * Do not depend on this.
   */
  statusText: string;
  /**
   * URL of the resource retrieved, or null if not available.
   */
  url: string | null;
  /**
   * Whether the status code falls in the 2xx range.
   */
  ok: boolean;
  /**
   * Type of the response, narrowed to either the full response or the header.
   */
  type: HttpEventType.Response | HttpEventType.ResponseHeader;
}

results matching ""

    No results matching ""