Web Dev Flashcards

1
Q

What are some status codes you know?

A

Starting off sort of generally, I know that the 100s codes are informational responses, 200s codes are successful responses, 300s codes are redirection messages, 400s are client side responses and 500s are server side responses.

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

What is a 500 status code?

A

A status code in the 500s represents some sort of server error. A status code of 500 means that the server encountered something that it does not know how to handle.

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

What is a 401 status code?

A

A 401 status code means that the client made an unauthorized or unauthenticated request meaning that the client must authenticate itself to get the requested response.

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

What are some HTTP code you’re familiar with?

A

Some specific codes that I know are 200 that means that whatever request the request was successful. 400 is a bad request made from the client side; meaning the client sent some sort of request that the server did not recognize. 429 is one I’ve become very familiar with. Too many requests were made. 500 is an internal server error meaning that the server encountered something that it does not know how to handle.

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

What is the difference between PUT and PATCH?

A

A PUT request is a technique of altering resources when the client transmits data that revamps the whole resource. They are also known to be unchanged, meaning that if you retry a request numerous times, that will be equal to a single request. They also use high bandwidth.

A PATCH request is a technique for transforming the resources when the client transmits partial data that will be updated without changing the whole data. They are believed to be non-idempotent, meaning that if you retry the request multiple times, you will have multiple resources with different URIs. They also use comparatively low bandwidth.

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

What is a REST API?

A

A REST API is an interface that two computer systems use to exchange information securely over the internet by following secure, reliable and efficient software communication standards.

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