UNPKG

@unito/integration-sdk

Version:

Integration SDK

11 lines (10 loc) 505 B
import * as HttpErrors from './httpErrors.js'; export declare class InvalidHandler extends Error { } /** * Processes provider response codes and returns the corresponding errors to be translated further in our responses * * @param responseStatus the reponseStatus of the request. Any HTTP response code passed here will result in an error! * @param message The message returned by the provider */ export declare function buildHttpError(responseStatus: number, message: string): HttpErrors.HttpError;