Sunday, 15 April 2012

php - Should I use HTTP Status code 410 for removed stock on a web site? -



php - Should I use HTTP Status code 410 for removed stock on a web site? -

i'm building site motorcycle dealer, , used stock changes daily. currently, when stock removed, google webmaster tools sees error 404, should imagine harm reputation of site google.

after doing research, found http status 410 means 'gone permanently'. should using status code requests bikes no longer in stock? page gives message bike has been sold, , shows list of other used stock, wondering right way of handling these be.

thanks in advance

the status code should refer representation of resource, not availability of resource itself. page listing item no longer available should still homecoming 200 status, not 404 or 410.

then can list message on page saying 'this item no longer available'. similar how amazon , ebay handle problem.

php seo http-status-codes

No comments:

Post a Comment