The 202 Accepted status code means the server has accepted the request but the processing is not finished yet. This is common for long-running operations.
The Location header is used to provide the URL where the client can check the status of the long-running operation.
HTTP/1.1 200 OK Content-Type: application/json { "status": "InProgress" }
When the operation is still running, the server returns a JSON with "status": "InProgress" to indicate the client should keep waiting.
HTTP/1.1 200 OK Content-Type: application/json { "status": "Succeeded", "result": { "message": "Operation completed" } }
The server returns "status": "Succeeded" and includes the result data when the operation finishes successfully.
The POST method is used to create resources or trigger operations that may take time. GET is for reading, PUT for replacing, DELETE for removing.
