Web Dev Flashcards
What are some status codes you know?
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.
What is a 500 status code?
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.
What is a 401 status code?
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.
What are some HTTP code you’re familiar with?
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.
What is the difference between PUT and PATCH?
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.
What is a REST API?
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.