adsense

Thursday, December 14, 2023

Response Codes in WEB API

 When designing WEB APIs we, as developers are interested in response codes returned after doing an operation.


Following are the response codes and there meanings

  • 1xx: Informational – Indicates transfer protocol-level information.
  • 2xx: Success – This confirms that the client’s request was accepted successfully.
  • 3xx: Redirection – Request is not completed. The client must take some additional action to complete their request.
  • 4xx: Client Error – Indicates that there is some error in API code.
  • 5xx: Server Error – Indicates an error occurred due to some environment settings.

Regards,

Samitha

No comments:

Post a Comment