Skip to main content

Function: errorMessageOf()

errorMessageOf(body): string | null

Defined in: http-server-mcp-openapi/src/inProcessCallApi.ts:49

The message an error response carries, read from the envelopes REST APIs commonly answer with: a plain string, { error: '…' }, { error: { code, message } } (as code: message) or { message: '…' }. null when the body is none of them.

Parameters​

ParameterType
bodyunknown

Returns​

string | null