Questions tagged [http-status-code-410]

410 is a standard HTTP status code indicating that a requested resource is no longer available at the server and no forwarding address is known.

94 questions
68
votes
6 answers

What are the possible reasons to get APNs responses BadDeviceToken or Unregistered?

When sending notifications to iOS users, for some of them I get response status code 400 (BadDeviceToken) or code 410 (Unregistered). From Apple documentation about "BadDeviceToken": The specified device token was bad. Verify that the request…
38
votes
2 answers

Alternative for https://gdata.youtube.com/feeds/api/videos/?v=2

These days I noticed that Youtube API which I'm using on my project is no longer available, e.g. https://gdata.youtube.com/feeds/api/videos/dLEk9yiXVQs?v=2 returns HTTP 410 response code which means that requested resource is no longer available and…
Limon Monte
  • 52,539
  • 45
  • 182
  • 213
14
votes
3 answers

Should I use 404 Not found or 410 Gone for a bulletin board system, when a topic is deleted?

I'm creating a bulletin board system, and now I'm implementing a 'delete topic' feature for admins. If someone opens the deleted topic, the server cannot find it, so it must be 404. On the other hand, the topic has existed sometime, so I must use…
user142019
13
votes
1 answer

Difference between 404 and 410 error code

I have read about many error code but I am little-bit confuse about Error code 404 and 410. I didn’t distinguish till now what these errors exactly pretend.
user4623031
12
votes
5 answers

I would like to 410 an entire directory - I deleted my blog

I had a folder called blog on my site. I deleted it all permanently. I would like to 410 it. How do i 410 an entire folder? e.g. my site looked like…
Bobby Smith
  • 131
  • 1
  • 1
  • 5
10
votes
3 answers

How to raise a 410 error in Django

I'd like to return 410 errors at for some of my Django pages instead of returning 404s. Basically, instead of calling raise Http404('some error message'), I would like to instead call raise Http410('some error message') shortcut. I am confused…
Spike
  • 5,040
  • 5
  • 32
  • 47
7
votes
1 answer

Outputcache and 410 status response not working

I would like to throw a 410 status code for a page that does some database lookups. However it seems that outputcache only caches 200 status code pages. Is there anyway around this? I want to cache 410 pages for a while so the database doesn't get…
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
6
votes
1 answer

Is it kosher to send a 404 or 410, but still show the content?

There was a lot of discussion about deleted questions over on Meta over the past couple of days. One proposal that came up how to deal with the deletion of questions now deemed off-topic was showing some popular deleted questions to everyone - with…
Pekka
  • 442,112
  • 142
  • 972
  • 1,088
6
votes
1 answer

Should I return a 410 Gone in response to a successful HTTP DELETE request?

I'm implementing DELETE support on a ReST API (build on ServiceStack) and wondering what response code to return following a successful DELETE. HTTP defines 410 as: The requested resource is no longer available at the server and no forwarding…
Dylan Beattie
  • 53,688
  • 35
  • 128
  • 197
5
votes
6 answers

404 Header redirect query

On a standard LAMP application i am sending people to my 404 page using a .htaccess rule like so: ErrorDocument 404 http://www.mydomain.com/404.php We serve dynamic images using a php file which reads files from the filesystem, i've just noticed…
robjmills
  • 18,438
  • 15
  • 77
  • 121
5
votes
1 answer

Server giving 410 error for resource that definitely exists in the correct directory

I am creating an e-Commerce site, I had been using Magento previously but am changing to a custom built site instead. On this site, I had created a page called create_account.php, this was fine for a while and it worked great but then it started…
Paddy Hallihan
  • 1,624
  • 3
  • 27
  • 76
4
votes
2 answers

Set 410 - STATUS GONE for specific url

Our company's SEO expert asked me to set some particular pages to 410 - status gone. I have searched about declaring 410 urls in .htaccess but I'm very confused, cause I don't understand if I have to redirect google bots to another url or just make…
zekia
  • 4,527
  • 6
  • 38
  • 47
4
votes
2 answers

Need to create 410 status code in Wordpress site for all pages in /forums/ folder

I was asked by a friend to fix a wordpress website with a bb press forum that was over-run by spammers. The wordpress site was okay, but the bb forum had over 1,500 urls of spammed entries in the space of about 3 months. The site is hosted by…
user3250805
  • 43
  • 1
  • 3
4
votes
3 answers

.htaccess to Redirect All Traffic to One Page (410 Gone)

We have a client that is closing its doors. We want to redirect all traffic that goes to their domain to a new page index.html with a few images in the _img subdirectory. (The page explains what happened, what current customers can expect with their…
Ben Dyer
  • 205
  • 1
  • 4
  • 7
3
votes
5 answers

Sending a 410 Gone header, then redirecting

I've got a page that checks if a user is logged in or the file is public then pushes a PDF to the browser via Response.WriteFile. Works great except when Google indexes a file and then we remove the file. So I'm looking at adding a 410 Gone to the…
jetgrrrl
  • 267
  • 3
  • 10
1
2 3 4 5 6 7