Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: API reference for the forbidden.js special file.
related:
links:
- app/api-reference/functions/forbidden
version: canary
version: experimental
---

The **forbidden** file is used to render UI when the [`forbidden`](/docs/app/api-reference/functions/forbidden) function is invoked during authentication. Along with allowing you to customize the UI, Next.js will return a `403` status code.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: API reference for the unauthorized.js special file.
related:
links:
- app/api-reference/functions/unauthorized
version: canary
version: experimental
---

The **unauthorized** file is used to render UI when the [`unauthorized`](/docs/app/api-reference/functions/unauthorized) function is invoked during authentication. Along with allowing you to customize the UI, Next.js will return a `401` status code.
Expand Down
2 changes: 1 addition & 1 deletion docs/01-app/03-api-reference/04-functions/forbidden.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: forbidden
description: API Reference for the forbidden function.
version: canary
version: experimental
related:
links:
- app/api-reference/file-conventions/forbidden
Expand Down
2 changes: 1 addition & 1 deletion docs/01-app/03-api-reference/04-functions/unauthorized.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: unauthorized
description: API Reference for the unauthorized function.
version: canary
version: experimental
related:
links:
- app/api-reference/file-conventions/unauthorized
Expand Down
Loading