For synchronous operations, the server returns HTTP response codes 200 or 204 depending on the request. For long-running operations, the server returns a status code of 202 along with an HTTP response header (Location), corresponding to the URI of the temporary resource that can be used to monitor the operation. The following table includes a few examples of success response codes. For an extensive list of response codes, see
List of HTTP header fields.
Table 1. Success response codesThe following table includes a few examples of success response codes.
Request
Response code
GET
200—OK with message body
204—OK with no message body
POST
200—OK with message body
201—Resource created (operation complete)
202—Accepted
PUT
201—Created
202—Accepted
DELETE
204—Success (operation complete)
PATCH
202—Accepted
The following table includes a few examples of failure response codes.
Table 2. Failure response codesThe following table includes a few examples of failure response codes.
Request
Response code
Invalid parameter
400—Invalid parameter
Authorization
401—Authorization failure
Permission denied
403—Permission denied
Not found
404—Resource not found
Invalid request found
405—invalid request found
Internal server error
500—Internal server error
Service unavailable
503-Service unavailable
Data is not available for the Topic
Please provide ratings (1-5 stars).
Please provide ratings (1-5 stars).
Please provide ratings (1-5 stars).
Please select whether the article was helpful or not.
Comments cannot contain these special characters: <>()\