src/lib/any-http-error/any-http-error-dialog-data.ts
Properties |
| body |
body:
|
Type : any
|
| Optional |
| error |
error:
|
Type : any | null
|
| headers |
headers:
|
Type : Record<string | string[]>
|
|
All response headers. |
| message |
message:
|
Type : string
|
| method |
method:
|
Type : string
|
| name |
name:
|
Type : string
|
| ok |
ok:
|
Type : boolean
|
|
Whether the status code falls in the 2xx range. |
| stack |
stack:
|
Type : string
|
| Optional |
| status |
status:
|
Type : number
|
|
Response status code. |
| statusText |
statusText:
|
Type : string
|
|
Textual description of response status code, defaults to OK. Do not depend on this. |
| timestamp |
timestamp:
|
Type : number
|
| type |
type:
|
Type : HttpEventType.Response | HttpEventType.ResponseHeader
|
|
Type of the response, narrowed to either the full response or the header. |
| url |
url:
|
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;
}