@loopback/docs
Version:
Documentation for LoopBack 4
32 lines (21 loc) • 1.17 kB
Markdown
lang: en
title: 'API docs: authorization.authorizationerror'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/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) > [@loopback/authorization](./authorization.md) > [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.
<b>Signature:</b>
```typescript
export declare class AuthorizationError extends Error
```
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [code](./authorization.authorizationerror.code.md) | | <code>string</code> | Machine readable code, can be understood by any clients |
| [statusCode](./authorization.authorizationerror.statuscode.md) | | <code>number</code> | The status code for HTTP requests |