Response codes of a web server

Translation of the original in Catalan. Read it in: CatalàCastellano

Surely the code that rings a bell the most is 404 when a page has not been found, but web servers return a response code for each action we do with them, below I explain the most common ones:

  • 200 - correct operation
  • 206 - only the partial content of the requested page is returned, this happens when the pages are very heavy and we previously had them in cache
  • 301 - it is the correct way to tell a search engine that we have changed the address permanently
  • 304 - nothing has been modified, the information the client has in the cache is the most current
  • 400 - error in the request transaction
  • 401 - unauthorized access attempt
  • 404 - "not found", the page cannot be shown because it doesn't exist or is not found at this moment

More information on the subject ( local ).