Page Contents

Home > @loopback/authorization > AuthorizationError

AuthorizationError class

The custom error class that describes the error thrown by the authorization module. Should be extracted to the common layer shared by authentication and authorization.

Signature:

export declare class AuthorizationError extends Error 

Properties

Property Modifiers Type Description
code   string Machine readable code, can be understood by any clients
statusCode   number The status code for HTTP requests