Ques:- What are HTTP status codes and what do common codes like 200 201 400 401 404 500 mean
Asked In :-
Xoriant Solutions Pvt Ltd, Zentron Labs, Xoriant Solutions, Bristlecone India, CodeCraft Technologies, iOPEX, XT Global, Data Patterns, Hestabit Technologies, Prodapt SA,
Right Answer:
HTTP status codes are three-digit numbers returned by a server to indicate the result of a client's request. Common codes include:
- **200**: OK - The request was successful.
- **201**: Created - The request was successful, and a resource was created.
- **400**: Bad Request - The server could not understand the request due to invalid syntax.
- **401**: Unauthorized - Authentication is required and has failed or not been provided.
- **404**: Not Found - The requested resource could not be found on the server.
- **500**: Internal Server Error - The server encountered an unexpected condition that prevented it from fulfilling the request.
HTTP status codes are three-digit numbers returned by a server to indicate the result of a client's request. Common codes include:
- **200**: OK - The request was successful.
- **201**: Created - The request was successful, and a resource was created.
- **400**: Bad Request - The server could not understand the request due to invalid syntax.
- **401**: Unauthorized - Authentication is required and has failed or not been provided.
- **404**: Not Found - The requested resource could not be found on the server.
- **500**: Internal Server Error - The server encountered an unexpected condition that prevented it from fulfilling the request.