WEB Flashcards
Why does HTTP codes exist?
-So that a server and a browser can communicate in a structured way and everybody knows what is going on
What does 404 stand for?
-Does not exist/Not Found
What do 2xx HTTP codes stand for?
-The request was successfull and did what it was supposed todo like 200 OK (generic no óther return) 201 Created (Resource like user was created) 202 Accepted 204 No Content (nothing needed to return)
What do 3xx HTTP codes stand for?
-For redirecting users to another URL
301 Moved Permanently
307 Temporary Redirect
304 Not-Modified (nothing has changed since xxx so not another request has to be made and you can save bandwidth)
What do 4xx HTTP codes stand for?
-Error that comes from the client side (you fucked up) like
400 Bad Request (your info was bad)
401 Unauthorized (authorize correctly first!)
403 Forbidden (I know who you are but you are not allowed to access this)
404 Not Found (Request did not find anything)
What do 5xx HTTP codes stand for?
-Error that comes from the server side (we fucked up) like
500 Internal Server Error (something broke on the server like the server has an error, or db has a bug)