How to Set Up a 410 Response for a Specific Page in Ghost CMS with Cloudflare?

What is the name of the domain?

What is the issue you’re encountering

Not been able to serve 410 response for a custom “410-gone” page.

What steps have you taken to resolve the issue?

  1. I have already set up a custom 404 page in Ghost, but I want certain URLs to return a “410 Gone” status instead of 404.

  2. I created a page at “/410-gone” but it still returns a “200 OK” status, not the 410.

  3. I edited the “redirects.yaml” file in Ghost to set specific URLs to redirect to “/410-gone” with a status of 410, but it seems to still return a 200.

  4. I am using Cloudflare and I couldn’t find a direct option for returning a 410 status (Cloudflare only allows 301-308 redirects).

Provided that you already return 404, you can configure Custom Error Responses to match on 404 status code and given URL to return status code 410 with specific content to the end-user.