Interface: NetworkErrorServerAnswer
Gala Launchpad SDK 9.0.0-rc.5 / index / NetworkErrorServerAnswer
Interface: NetworkErrorServerAnswer
Defined in: packages/launchpad-sdk/dist/utils/errors.d.ts:134
What a server answered a failed request with, as a NetworkError carries it.
The launchpad backend (NestJS, GlobalExceptionFilter) answers an error with
{ status, error: true, message } (an HttpException: validation failures, sendResult
refusals, guards) or { statusCode, message } (its CustomError, an upload over 4 MB, an
unhandled 500). message is the text the backend means the user to read.
Since
9.0.0
Properties
body?
optionalbody?:unknown
Defined in: packages/launchpad-sdk/dist/utils/errors.d.ts:149
The whole body as received: parsed JSON, or the text of a non-JSON answer (a proxy's HTML).
details?
optionaldetails?:unknown
Defined in: packages/launchpad-sdk/dist/utils/errors.d.ts:147
The body's details, when it has them (the launchpad backend sends none today).
serverError?
optionalserverError?:string
Defined in: packages/launchpad-sdk/dist/utils/errors.d.ts:145
The body's error when it is a string (NestJS's default "Bad Request", another host's error
name). The launchpad backend sends error: true, which is no text: then this is absent and
the boolean is in body.
serverMessage?
optionalserverMessage?:string
Defined in: packages/launchpad-sdk/dist/utils/errors.d.ts:139
The body's message. An array of strings (NestJS class-validator messages) is joined with
,, exactly as String(array) shows it.