12 Tweets Apr 13, 2023
10 HTTP status codes all developers should recognize.
Thread🧵
📌 200 OK
The standard ‘OK’ status code means an HTTP request was successful, and the resource was delivered.
📌 201 Created
The request was successful, and a new resource was created. This is typical of successful PUT and POST requests.
📌 204 No Content
The request was successful, but no new information needed to be returned. This is typical of DELETE requests.
📌 301 Permanent Redirect
The requested resource has been permanently moved to a new URL indicated in the ‘Location’ response header.
📌 304 Not Modified
This code is for caching purposes. If the resource has not been modified, this code is returned to let the client know they can continue using the same cached version.
📌 400 Bad Request
The request can not be fulfilled due to a client error. Examples that cause this status code are invalid formatting, a request syntax error, or missing data.
📌 401 Unauthorized
The client cannot access the resource because they are not authenticated.
📌 403 Forbidden
The client's identity is known to the server, but they do not have permission to access the resource.
📌 404 Not Found
The request is valid, but the resource is not found on the server.
In an API, this means the endpoint is valid, but the resource does not exist. In the browser, it means the URL is not recognized.
📌 500 Internal Server Error
The request is valid, but there is an unexpected and unknown server-side problem, and the request cannot be completed.
Thanks for reading! Follow @Rapid_API for more exclusive content. 🐙💙

Loading suggestions...