Skip to content

@serenity-is/corelib / RequestErrorInfo

Interface: RequestErrorInfo

Defined in: src/base/servicetypes.ts:398

HTTP-level error details supplied to ServiceOptions.onError alongside the service error payload.

Properties

responseText?

optional responseText: string

Defined in: src/base/servicetypes.ts:404

Raw response body text when the response could not be parsed as JSON.


status?

optional status: number

Defined in: src/base/servicetypes.ts:400

HTTP status code (e.g. 403, 500).


statusText?

optional statusText: string

Defined in: src/base/servicetypes.ts:402

HTTP status text (e.g. "Forbidden").