# Страница ошибки для недоступной категории

**URL:** <https://meta.discourse.org/t/custom-error-page-for-inaccessible-category/125616>\
**Category:** Product Support\
**Created:** [13.Август.2019 01:43:43 UTC](https://meta.discourse.org/t/custom-error-page-for-inaccessible-category/125616 "2019-08-13T01:43:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dan/32/101549_2.png) [@dan](https://meta.discourse.org/u/dan)\
**Post date:** [16.Октябрь.2019 10:42:15 UTC](https://meta.discourse.org/t/custom-error-page-for-inaccessible-category/125616/4 "2019-10-16T10:42:15Z")

</div>

Появилась новая настройка сайта `detailed_404`, которая управляет этим. При включении она попытается предоставить больше информации об ошибке (например, какая группа может видеть тему или категорию).

> <https://github.com/discourse/discourse/pull/8014>
>
> If the setting is turned on, then the user will receive information
> about the s…ubject: if it was deleted or requieres some special access to
> a group (only if the group is public). Otherwise, the user will receive
> a generic #404 error message. For now, this change affects only the
> topics and categories controller.
> 
> This commit also tries to refactor some of the code related to error
> handling. To make error pages more consistent (design-wise), the actual
> error page will be rendered server-side.
> 
> \---
> 
> \### Preview
> 
> \* Topic in a secret category (with public group)
> 
> \<img width="1135" alt="topic in secret category" src="https://user-images.githubusercontent.com/4147664/63161475-d9fd6d00-c028-11e9-8e0a-6c8595d73c32.png"\>
> 
> \* Deleted topic in a public category (with public group)
> 
> \<img width="1135" alt="a deleted topic" src="https://user-images.githubusercontent.com/4147664/63161465-d538b900-c028-11e9-88b9-0587fc763645.png"\>
> 
> \* Deleted topic in a secret category
> 
> \<img width="1135" alt="deleted topic in secret category" src="https://user-images.githubusercontent.com/4147664/63161491-e2ee3e80-c028-11e9-83a8-39bb46494069.png"\>
> 
> \* Topic in a secret category (with private group)
> 
> \<img width="1135" alt="topic in super secret category" src="https://user-images.githubusercontent.com/4147664/63161500-e8e41f80-c028-11e9-8a98-ca3534288849.png"\>
> 
> \* Secret category (with a public group)
> 
> \<img width="1135" alt="category page" src="https://user-images.githubusercontent.com/4147664/63161513-ee416a00-c028-11e9-87ef-45943576dbaa.png"\>

---

_[View the full topic](https://meta.discourse.org/t/custom-error-page-for-inaccessible-category/125616)._
