Cisco Cisco ASA 5555-X Adaptive Security Appliance

下载
页码 32
 
About the ASA REST API 
REST API Codes 
 
 
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. 
JSON Error/Warning Response Schema 
  { ‘‘code’’   : ‘‘string’’, 
    ‘‘details’’: ‘‘string’’, 
    ‘‘context’’: attribute name, 
    ‘‘level’’  : <Error/Warning/Info> 
  },  
  ... 
HTTP header 
400 Bad Request 
Invalid query parameters – unrecognized parameters or, missing parameters, or invalid 
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). 
Property 
Type 
Description