HP 3PAR Web Service API 1.3.1 Developer's Guide

The code Member
Just as is the case with CLI text, the text in the desc member (see Table 5 (page 22)) is subject to
change and cannot be relied upon. To avoid that problem, the WSAPI provides a reliable code
for an error.
The error code member is a JSON numeric type. Only codes that are defined in Table 5 (page
22) and in Table 6 (page 25) will be returned.
For applications that change behavior based on errors, only the code member should be relied
on. For ease of reading documentation, a symbol is defined for each numeric code, but the symbol
is not part of the API. The numeric value is the contract between client and server. The codes are
described in Table 5 (page 22).
Generic codes for the WSAPI are described in Table 5 (page 22).
Table 5 Generic WSAPI code Member Status and Error Codes
DescriptionHTTP CodeAPI Error CodeAPI Error
An internal error has
occurred in the server.
500 Internal
Server Error
1INT_SERV_ERR
Memory allocation failure.
An SSL protocol violation
has occurred.
400 Bad Request2INV_SSL
The client has not sent a
complete request.
400 Bad Request3INPUT_EOF
The client has sent a
request that is too long.
413 Request Entity
Too Large
4INPUT_TOO_LONG
The username or
password is invalid.
403 Forbidden5INV_USER_PASS
The client request has an
invalid session key.
403 Forbidden6INV_SESS_KEY
The client did not send or
receive data within the
time limit.
408 Request
Timeout
7TIMEOUT
The client request uses an
unsupported HTTP version.
505 HTTP Version
Not Supported
8UNSUP_HTTP
The resource does not
support the operation.
501 NOT
IMPLEMENTED
9UNSUP_OP
The operation name is not
specified in the URI.
(Not used by the HP 3PAR
OS.)
10
The requested resource
does not exist.
404 Not Found11URI_RES_NOT_FOUND
Permission denied;
insufficient privileges.
403 Forbidden13PERM_DENIED
The host does not exist.404 Not Found17NON_EXISTENT_HOST
The client request contains
a value that is too large.
400 Bad Request28TOO_LARGE
A more specific error
could not be determined.
400 Bad Request29OTHER
An operation that fails
with the error OTHER will
22 Accessing the WSAPI