Cisco Cisco ASA 5585-X Adaptive Security Appliance
About the ASA REST API v1.1.1
REST API Codes
REST API Codes
8
REST API Codes
HTTP error codes will be reported based on standards:
HTTP success codes will be reported based on standards:
In addition to the error code, the return response may contain body, which will have error object containing more details
about the error as appropriate.
about the error as appropriate.
JSON Error/Warning Response Schema
[
{ ‘‘code’’ : ‘‘string’’,
‘‘details’’: ‘‘string’’,
‘‘context’’: attribute name,
‘‘level’’ : <Error/Warning/Info>
},
...
HTTP Error Code appearing in
HTTP header
Description
400 Bad Request
Invalid query parameters – unrecognized parameters or, missing parameters, or invalid
values.
values.
404 Not Found
The URL does not match a resource that exists. For example, a HTTP DELETE of a resource
fails because the resource is unavailable.
405 Method not Allowed
An HTTP verb that is not allowed, such as a POST on a read-only resource.
500 Internal Server Error
Server Error A catch-all for any other failure – this should be the last choice when no other
response code makes sense.
HTTP Success Code appearing in
HTTP header
Description
200 Success OK
The resource is retrieved successfully using GET method.
201 Created
The resource was created successfully using POST method.
204 No Content
The resource was updated successfully using PUT or PATCH method or deleted
successfully (DELETE).
successfully (DELETE).