Wednesday, January 10, 2024

Error

Here are some of the common HTTP server status codes:

1xx - Informational Response: This class of status codes indicates a provisional response while processing the request.
  • 100 - Continue: The server has received the initial part of the request and the client should proceed with the rest of the request.
  • 101 - Switching Protocols: The server is willing to change the application protocol being used by the client.


2xx - Success: This class of status codes indicates that the client's request was successfully received, understood, and accepted.

  • 200 - OK: The request was successful.
  • 201 - Created: The request was fulfilled, and a new resource was created.
  • 204 - No Content: The server successfully processed the request but does not need to return any content.


3xx - Redirection: This class of status codes indicates that further action needs to be taken by the client to complete the request.

  • 301 - Moved Permanently: The requested resource has been permanently moved to a new URL.
  • 302 - Found: The requested resource has been temporarily moved to a different URL.


4xx - Client Error: This class of status codes indicates that the client seems to have made an error in the request.

  • 400 - Bad Request: The server could not understand the request due to invalid syntax.
  • 404 - Not Found: The requested resource could not be found on the server.


5xx - Server Error: This class of status codes indicates that the server failed to fulfill a valid request.

  • 500 - Internal Server Error: The server encountered an unexpected condition that prevented it from fulfilling the request.
  • 503 - Service Unavailable: The server is currently unable to handle the request due to temporary overloading or maintenance of the server.


These codes are part of the HTTP standard and help in understanding and troubleshooting issues when communicating with servers over the internet.

No comments:

Post a Comment

testing