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 

Extends: Error

Properties

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