Stay organized with collections
Save and categorize content based on your preferences.
Monday, August 11, 2008
This week we're publishing several blog posts dedicated to helping you with one response code:
404.
Response codes
are a numeric status (like 200 for "OK", 301 for "Moved Permanently")
that a webserver returns in response to a request for a URL. The 404 response code
should be returned for a file "Not Found".
When a user sends a request for your webpage, your webserver looks for the corresponding file for
the URL. If a file exists, your webserver likely responds with a 200 response code
along with a message (often the content of the page, such as the HTML).
So what's a 404? Let's say that in the link to "Visit Google Apps" above, the link is
broken because of a typing error when coding the page. Now when a user clicks "Visit Google Apps",
the particular webpage/file isn't located by the webserver. The webserver should return a
404 response code, meaning "Not Found".
Now that we're all on board with the basics of 404 errors, stay tuned for even more
information on making 404 errors good for users and for search engines.
Written by Maile Ohye, Developer Programs Tech Lead
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],[],[[["This series of blog posts focuses on the `404` response code, which indicates a \"Not Found\" error when a webserver cannot locate the requested webpage/file."],["Understanding response codes, like the common `200` for \"OK\" or `301` for \"Moved Permanently,\" is important as they represent the webserver's status in response to a request."],["A `404` error occurs when a user clicks a link, but the linked webpage/file is missing or inaccessible due to issues like a broken or mistyped URL."],["The upcoming posts will provide guidance on optimizing the user experience and search engine handling of `404` errors."]]],[]]