basalt / drives-microsoft/src / errorCode
Function: errorCode()
> errorCode(body, status): string
Defined in: drives-microsoft/src/errors.ts:55
Pulls error.code out of a Graph error body.
error.message is never forwarded. Graph's messages are free text and routinely quote the request — including, on a download path, a pre-signed URL that is itself a bearer credential. innerError.request-id is genuinely useful for a support ticket but has nowhere to go in the contract's error shape, so it stays out of details rather than being smuggled into the summary.
Parameters
body
string
status
number
Returns
string