HTTP Status codes worth knowing about

HTTP Status codes worth knowing about

Five categories are used to group the responses:

1. Informational responses (100–199)

2. Successful responses (200–299)

3. Redirection messages (300–399)

4. Client error responses (400–499)

5. Server error responses (500–599)

200 - OK

The HTTP response status code 200 is the standard response for successful HTTP requests.

The server responded with "OK" to indicate that the request was successful.

201 - Created

The HTTP response code 201 indicates that the request has been successful and that a new resource has been created. 

This is often the case when a new file or directory is uploaded to a web server

202 - Accepted

It means that the server has accepted the request, but the processing has not been completed.

It is used when the client does not need to wait for the processing to finish before continuing.

204 - No Content

HTTP response status code 204 indicates that the server has successfully processed the request and that there is no content to return.

This is often used when a request is made to update an existing resource, such as when updating a record in a database.

301 - Moved Permanently

It means that the resource you are trying to access has been moved permanently. It is usually the result of a website redesign or change in URL.

302 - Found

The HTTP response status code 302 is similar to status 301, showing that the resource has been moved.

However, unlike status 301, the 302 status code indicates that the redirect is only temporary.

304 - Not Modified

It indicates that previously cached response can be reused, as the requested resource has not been modified.

This can improve performance, as the client does not need to re-download the resource.

400 - Bad request

This HTTP response code means that the server could not understand the request due to invalid syntax.

It is often caused by a client error, such as a malformed URL.

401 - Unauthorized

It indicates that the client is not authorized to access the requested resource.

It is usually due to an invalid or missing authorization header.

403 - Forbidden

It indicates that the client is not authorized to access the requested resource.

It is usually due to a lack of permissions.

404 - Not Found

It is an error message that means the page you are looking for could not be found.

This can be due to several reasons, such as a typo in the URL or the page being moved or deleted.

405 - Method Not Allowed

The HTTP response code 405 indicates that the request method is not allowed for the requested resource.

It is usually due to a problem with the server configuration.

#stgi #apitesting #bankershelpingbankers

To view or add a comment, sign in

More articles by Venkateswara Reddy Keesara

  • Myths about QA testing

    QA testing is a critical component of the software development lifecycle and must be performed with care.The following…

  • API Testing. What is it?

    API Testing. What is it? API testing is performed to test whether a particular API meets pre-defined parameters or not.

Others also viewed

Explore content categories