-
Notifications
You must be signed in to change notification settings - Fork 11
HTTP Status Code
Mahmoud A. Zaid edited this page Mar 12, 2019
·
2 revisions
The Status-Code element in a server response, is a 3-digit integer where the first digit of the Status-Code defines the class of response and the last two digits do not have any categorization role. There are 5 values for the first digit:
- It means the request has been received and the process is continuing.
- It means the action was successfully received, understood, and accepted.
- It means further action must be taken in order to complete the request.
- It means the request contains incorrect syntax or cannot be fulfilled.
- It means the server failed to fulfill an apparently valid request.
The below is some of HTTP status code:
- shows success.
- Resource created successfully using
- Response body is empty. For example, a DELETE request.
- Reduce network bandwidth usage in case of conditional GET requests.
- Response body should be empty.
- Headers should have date, location, etc.
- States that an invalid input is provided.
- The requested page needs a username and a password.
- User is not having access to the method being used. For example, Delete access without admin rights.
- The server can not find the requested page.
- Conflict situation while executing the method. For example, adding duplicate entry.
- The server has thrown some exception while executing the method.
Mahmoud A. Zaid
- Introduction
- HTTP Methods
- HTTP Request
- API Parameters
- HTTP Response
- HTTP Status Code
- Methods Examples
- Idempotence