---
lang: en
title: 'API docs: authorization.authorizationoptions.defaultstatuscodefordeny'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/authorization
permalink: /doc/en/lb4/apidocs.authorization.authorizationoptions.defaultstatuscodefordeny.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/authorization](./authorization.md) &gt; [AuthorizationOptions](./authorization.authorizationoptions.md) &gt; [defaultStatusCodeForDeny](./authorization.authorizationoptions.defaultstatuscodefordeny.md)

## AuthorizationOptions.defaultStatusCodeForDeny property

Default HTTP status code when the final decision is `AuthorizationDecision.DENY`<!-- -->. If not set, default to 403

<b>Signature:</b>

```typescript
defaultStatusCodeForDeny?: number;
```

