OpenAPIDefaultErrorMapperFunction | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Type Alias OpenAPIDefaultErrorMapperFunction

    OpenAPIDefaultErrorMapperFunction: (
        data: { error: string; status: HTTPErrorCode },
    ) => Promise<WebResponse>

    Signature for a x-webhare-default-error-mapper function. Note that this callback doesn't receive the RestRequest as we may not have evaluated the route when we invoke the error handler

    Type declaration