HP StoreEver ESL G3 Tape Libraries User Manual
Page 10
For requests that perform creation, updates or deletion (POST, PUT, DELETE methods) the response
object can be a response code object, described below:
200
The WSResultCode object contains the HTTP result code of the HTTP response, 200 in this case,
a brief description of this code, OK, a summary of the result, “Operation Completed Successfully”,
the action that was requested, “Logout” and an optional custom Code can further describe the
result in certain contexts.
The custom codes are as follows:
•
The maximum number of allowed ADMIN user logins has been exceeded.
•
The user session context is already logged in.
Some request may return plain text and are not resource object representations but single scalar
values. An example of this would be a request to get the current date configured on the library:
•
HTTP://library/aml/system/dateTime/date
•
The following is returned in the response body, 2012-08-23.
The response header also contains a HTTP status code that reports the status of the request. These
codes are part of the HTTP standard and include the following:
Table 1 HTTP status code description
Description
HTTP status code
The request has succeeded. The information returned with
the response is dependent on the method used in the
request, for example:
GET an entity corresponding to the requested resource is
sent in the response;
200 OK
POST an entity describing or containing the result of the
action;
The request has been fulfilled and resulted in a new
resource being created.
201 Created
The request could not be understood by the server due to
malformed syntax.
400 Bad Request
The request requires a valid user login session.
401 Unauthorized
The request requires a valid login and the user needs to
have access to the requested resource.
403 Forbidden
The server has not found anything matching the
Request-URI.
404 Not Found
The method specified in the Request-Line is not allowed for
the resource identified by the Request-URI.
405 Method Not Allowed
10
Interface description