UNPKG

@authress/sdk

Version:

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

20 lines (18 loc) 398 B
/** * * @export * @class AuthressHttpError * @extends {Error} */ class AuthressHttpError extends Error { constructor(url, status, data, headers) { super(data?.title || url); this.name = 'AuthressHttpError'; this.code = 'AuthressHttpError'; this.url = url; this.status = status; this.data = data; this.headers = headers; } } module.exports = AuthressHttpError;