WEB Flashcards

1
Q

Why does HTTP codes exist?

A

-So that a server and a browser can communicate in a structured way and everybody knows what is going on

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does 404 stand for?

A

-Does not exist/Not Found

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What do 2xx HTTP codes stand for?

A
-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)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What do 3xx HTTP codes stand for?

A

-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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What do 4xx HTTP codes stand for?

A

-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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What do 5xx HTTP codes stand for?

A

-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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly