Cisco Cisco ASA 5555-X Adaptive Security Appliance

下载
页码 29
 
About the ASA REST API v1.3.2 
REST API Codes 
 
 
In addition to the error code, the returned response may contain a body, which includes an error object providing more 
details about the error. 
HTTP success codes will be reported based on these standards: 
 
 
JSON Error/Warning Response Schema 

  "level"  : "string", 
  "code"   : "string", 
  "context": "string", 
  "details": "string" 
}  
 
 
 
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 in HTTP header  Description 
200 Success OK 
The resource was 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 
level 
String  "Error," "Warning" or "Info." 
code 
String  Response code, such as "READ-ONLY-FIELD", or a code specific to a particular feature.  
context 
String  The name of the attribute to which this Error/Warning/Info response applies. 
details 
String  Detailed message for this Error/Warning/Info response.