# Return something else than a 404 for deleted subjects

**URL:** <https://meta.discourse.org/t/return-something-else-than-a-404-for-deleted-subjects/32677>\
**Category:** Feature\
**Created:** [2015 年 8 月 29 日午前 10:06 UTC](https://meta.discourse.org/t/return-something-else-than-a-404-for-deleted-subjects/32677 "2015-08-29T10:06:11Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2015 年 9 月 18 日午前 7:25 UTC](https://meta.discourse.org/t/return-something-else-than-a-404-for-deleted-subjects/32677/13 "2015-09-18T07:25:06Z")

</div>

That change is in:

[https://github.com/discourse/discourse/pull/3785/](https://github.com/discourse/discourse/pull/3785/)

This snippet is what error codes we’re currently giving out:

> <https://github.com/discourse/discourse/blob/c9e4745fe8081430079c25edbba0b5211dd9a28c/spec/controllers/topics_controller_spec.rb#L595-L636>

The “private (message) topic → 302” seems a bit weird, especially since we give a 403 (same as secure category) for signed-in users.

---

_[View the full topic](https://meta.discourse.org/t/return-something-else-than-a-404-for-deleted-subjects/32677)._
