UNPKG

@authress/sdk

Version:

Client SDK for Authress authorization as a service. Provides managed authorization api to secure service resources including user data.

19 lines (17 loc) 326 B
/** * * @export * @class ApiError * @extends {Error} */ class ApiError extends Error { constructor(message, status, body, headers) { super(message); this.name = 'ApiError'; this.code = 'ApiError'; this.status = status; this.body = body; this.headers = headers; } } module.exports = ApiError;