Common HTTP Status Codes With Live Example And Their Meanings.

Common HTTP Status Codes and Their Meanings.



  1. 200 OK 

    Meaning: The request was successful, and the server returned the expected response.
    Example: A successful GET request to retrieve data. 

  2.            Live API Example: 
  3. 201 Created

    Meaning:
     The request has been fulfilled, and a new resource was created.
    Example: A POST request that creates a new resource on the server 

  4.            Live API Example: 
  5. 204 No Content

    Meaning:
     The request was successful, but there is no content to return
    Example: A DELETE request where the resource was deleted successfully.

  6.            Live API Example: 
  7. 400 Bad Request 

    Meaning:
     The server could not understand the request due to invalid syntax.
    Example: A malformed request that the server can’t process. 

  8.            Live API Example: 
  9. 401 Unauthorized 

    Meaning:
     Authentication is required, and the user is not authenticated.
    Example: Accessing a protected resource without valid credentials. 

  10.            Live API Example: 
  11. 403 Forbidden

    Meaning:
     The request is valid, but the server refuses to authorize it.
    Example: Trying to access a restricted resource. 

  12.            Live API Example: 
  13. 404 Not Found

    Meaning:
     The server cannot find the requested resource.
    Example: A GET request to a non-existent endpoint or resource.

  14.            Live API Example: 
  15. 500 Internal Server Error

    Meaning:
      The server encountered an unexpected condition that prevented it from fulfilling the                       request.                        
    Example: A server misconfiguration or issue causes the error.

  16.            Live API Example: 
  17. 502 Bad Gateway

    Meaning:
     The server, while acting as a gateway or proxy, received an invalid response from the                    upstream server.                                 
    Example: A server in the middle cannot process the request properly.

  18.            Live API Example: 
  19. 503 Service Unavailable

    Meaning:
     The server is temporarily unable to handle the request due to maintenance or overload.
    Example: A server is under maintenance or experiencing a high load.

  20.            Live API Example: 

Previous Post Next Post

Contact Form