Skip to content

basalt / http/src / HttpErrorReport

Interface: HttpErrorReport ​

Defined in: http/src/error-report.ts:26

What an adapter knows about a failed request, in neutral terms.

Properties ​

code ​

> code: string

Defined in: http/src/error-report.ts:35

Machine code from the error body, e.g. 'VALIDATION_ERROR', 'INTERNAL_ERROR'.


error ​

> error: unknown

Defined in: http/src/error-report.ts:31

The thrown error, untouched — including its log-only internalDetails (read them sanitised with internalDetailsOf(error)).


method ​

> method: string

Defined in: http/src/error-report.ts:36


status ​

> status: number

Defined in: http/src/error-report.ts:33

Status already resolved by toErrorResponse.


url ​

> url: string

Defined in: http/src/error-report.ts:37

Released under the MIT License.