.
Beside this, what is the difference between 200 and 201?
The 200 status code is by far the most common returned. It means, simply, that the request was received and understood and is being processed. A 201 status code indicates that a request was successful and as a result, a resource has been created (for example a new page).
Likewise, what are the different error codes? Now that you have a high-level understanding of HTTP status codes, we will look at the commonly encountered errors.
- 400 Bad Request.
- 401 Unauthorized.
- 403 Forbidden.
- 404 Not Found.
- 500 Internal Server Error.
- 502 Bad Gateway.
- 503 Service Unavailable.
- 504 Gateway Timeout.
Accordingly, whats is HTTP 204?
The HTTP 204 No Content success status response code indicates that the request has succeeded, but that the client doesn't need to go away from its current page. A 204 response is cacheable by default. An ETag header is included in such a response.
What is a 201 response code?
201 Created. The request has been fulfilled and has resulted in one or more new resources being created. The primary resource created by the request is identified by either a Location header field in the response or, if no Location field is received, by the effective request URI.