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?
202 Accepted:
Generally, 202 response
often 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 Content
response means that the server has successfully processed the request, but there is no content to return in the response.
Here 204 No Content
indicates 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.