Inspecting API response codes
API responses are assigned specific numeric codes, which let you quickly identify if a request to an endpoint has been successful or not; and if not, why.
The individual API reference chapters provide error codes and their detailed descriptions for each API endpoint.
To inspect response codes
You may inspect response codes via curl by adding the --include
option:
curl -X POST -s <your Acronis data center URL>/<Acronis product API location>/status \ --header "Authorization: Bearer <your token>" \ --data "{...}" --include
Then, the first line of the response output will contain the code, which is 204 (a successful request) in the following output:
HTTP/1.1 204 No Content <...>