UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

89 lines (44 loc) 1.55 kB
--- lang: en title: 'API docs: authorization.authorizationerror' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/authorization permalink: /doc/en/lb4/apidocs.authorization.authorizationerror.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/authorization](./authorization.md) &gt; [AuthorizationError](./authorization.authorizationerror.md) ## 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:** ```typescript export declare class AuthorizationError extends Error ``` **Extends:** Error ## Properties <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> [code?](./authorization.authorizationerror.code.md) </td><td markdown="1"> </td><td markdown="1"> string </td><td markdown="1"> _(Optional)_ Machine readable code, can be understood by any clients </td></tr> <tr><td markdown="1"> [statusCode?](./authorization.authorizationerror.statuscode.md) </td><td markdown="1"> </td><td markdown="1"> number </td><td markdown="1"> _(Optional)_ The status code for HTTP requests </td></tr> </tbody></table>