Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

http status code for an expired link?

Tags:

http

guys which is the correct status code for a link that expires in a certain amount of time?

I have thought to send a 404 after the expiration but maybe there is a better http status to send.

Example of link:

mysite/dir/062011/file.exe (<- working only within 06-2011)

Thanks

like image 297
dynamic Avatar asked May 17 '11 08:05

dynamic


2 Answers

How about 410 "Gone"?
See: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

like image 62
Volker Voecking Avatar answered Sep 22 '22 13:09

Volker Voecking


410 Gone  The requested resource is no longer available at the server and no forwarding address is known. This condition is expected to be considered permanent. 
like image 36
Timofey Stolbov Avatar answered Sep 20 '22 13:09

Timofey Stolbov