Type Alias RestDefaultErrorMapperFunction
RestDefaultErrorMapperFunction: (
data: { error: string; status: HTTPErrorCode },
) => Promise<WebResponse>
data: { error: string; status: HTTPErrorCode },
) => Promise<WebResponse>
Type declaration
- (data: { error: string; status: HTTPErrorCode }): Promise<WebResponse>
Parameters
- data: { error: string; status: HTTPErrorCode }
Returns Promise<WebResponse>
Signature for a x-webhare-default-error-mapper function