Cisco Cisco Prime Performance Manager 1.7 Guía Del Desarrollador

Descargar
Página de 44
 
Cisco Prime Performance Manager 1.7 REST API Guide 
Table 44 – HTTP Response Headers 
Header Name 
Sample Value 
Description 
Allow 
(HTTP/1.1) 
For example, “GET” 
This header is generated along with 
status code “405” in response to 
request with a method (HEAD, 
POST, PUT, DELETE) that is not 
supported for that resource. 
Cache-Control 
(HTTP/1.1) 
For example, “no-cache” OR “max-age=3600” 
When “no-cache” is found, the client 
should not cache the response.  
Otherwise if max-age is found, 
response can be cached by the client. 
The max-age value tells the client 
how long in seconds the response 
should be cached. 
Content-Type 
For example. “application/xml;charset=UTF-8” 
The content-type of the response 
followed by the charset encoding. 
Date 
For example. “Date    Fri, 27 Jan 2012 20:29:02 
GMT” 
The date the response was created. 
WWW-Authenticate 
“Basic realm=RESTSecureArea” 
This header is sent back to the client 
when Prime Performance Manager 
has user access (authentication) 
enabled, and the system failed to 
authenticate the user’s request (see 
the Authorization  
Request header above).  This 
response header conforms to the 
HTTP Basic WWW-Authenticate 
header defined in HTTP 1.0 
standards. 
Content-Range 
pages [page number]/[total pages 
For example. “pages 2/10” 
In the example the current response contains page 2 
of a report that has 10 pages total. 
This response header is sent back 
when more than one page is 
available for the requested report. 
5.11  HTTP Status Code 
The following table shows the HTTP Status codes supported. 
Table 45 – HTTP Status Codes 
Status Code 
Description 
200 
OK response. The request was correctly processed, and a response with a content body 
was produced. 
204 
No content found. That is, the request was a valid request; however, the system did not 
have any content available for the resource requested. For example, this would be the 
case for a valid report that has no data in it.