---
title: "Discussion on \"Mocking a 410 Gone for a Retired Resource vs a Plain 404\" | Hashnode"
description: "Discussion on \"Mocking a 410 Gone for a Retired Resource vs a Plain 404\". Why a retired resource should return 410, not 404, and how to mock the permanent response."
url: "https://hashnode.com/posts/mocking-410-gone-retired-resource-vs-404/6aed8d2ea12d9518ae68fe6d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mocking a 410 Gone for a Retired Resource vs a Plain 404](https://blogs.powerduck.com/mocking-410-gone-retired-resource-vs-404?utm_source=hashnode&utm_medium=feed)

Why a retired resource should return 410, not 404, and how to mock the permanent response.

5d ago · 5 min read · blogs.powerduck.com  
Read the article

-   [#mocking](https://hashnode.com/tag/mocking)
-   [#api](https://hashnode.com/tag/api)
-   [#developers](https://hashnode.com/tag/developers)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
