When calling Azure with a request to MOVE a resource, the docs say that the response can be:
- 202 Accepted
- 204 No Content
- Other Status Codes (CloudError)
I get the error codes, but what is the difference between 202 and 204 in this context?
When calling Azure with a request to MOVE a resource, the docs say that the response can be:
I get the error codes, but what is the difference between 202 and 204 in this context?
Copyright © 2021 Jogjafile Inc.
202 Accepted:
Generally,
202 responseoften indicates that the request has been accepted and will be processed asynchronously.In API's, 202 Accepted response means that the request was accepted and is being processed. So here, it means that the operation for moving a resource from one to another is still in progress.
204 No content:
In general,
204 No Contentresponse means that the server has successfully processed the request, but there is no content to return in the response.Here
204 No Contentindicates that the request was accepted and successfully processed, but there is no response body. It means the moving operation has been successfully completed.I tried to get the resource groups using postman to see if the response was working properly, and it worked as follows.
Refer doc1 & doc2 by @Lokesh Gupta for more detailed information.