Skip to content

Commit

Permalink
Fix Unauthorized → Forbidden error
Browse files Browse the repository at this point in the history
  • Loading branch information
pwizla committed Dec 20, 2023
1 parent 655d8c9 commit 30616c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docusaurus/docs/dev-docs/error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ The `ForbiddenError` class is a specific error class used when a user either doe
| --- | --- | --- | --- |
| `message` | `string` | The error message | `Forbidden access` |
Note: `ForbiddenError` message contents will not be displayed to the Content API and will be returned to the user as an empty `UnauthorizedError`
Note: `ForbiddenError` message contents will not be displayed to the Content API and will be returned to the user as an empty `ForbiddenError`
```js
throw new ForbiddenError('Ah ah ah, you didn\'t say the magic word');
Expand Down

1 comment on commit 30616c1

@vercel
Copy link

@vercel vercel bot commented on 30616c1 Dec 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

documentation – ./

documentation-strapijs.vercel.app
docs-vercel-v4.strapi.io
documentation-git-main-strapijs.vercel.app

Please sign in to comment.