exceptions – HTTP Exceptions

Exceptions for the client

Author:Walter A. Boring IV
Description:This contains the HTTP exceptions that can come back from the REST calls to 3PAR
class hp3parclient.exceptions.UnsupportedVersion[source]

Indicates that the user is trying to use an unsupported version of the API

class hp3parclient.exceptions.CommandError[source]
class hp3parclient.exceptions.AuthorizationFailure[source]
class hp3parclient.exceptions.NoUniqueMatch[source]
class hp3parclient.exceptions.ClientException(error=None)[source]

The base exception class for all exceptions this library raises.

Parameters:error (array) – The error array
class hp3parclient.exceptions.SSLCertFailed(error=None)[source]

The SSL certificate from the server could not be verified

class hp3parclient.exceptions.HTTPBadRequest(error=None)[source]

HTTP 400 - Bad request: you sent some malformed data.

class hp3parclient.exceptions.HTTPUnauthorized(error=None)[source]

HTTP 401 - Unauthorized: bad credentials.

class hp3parclient.exceptions.HTTPForbidden(error=None)[source]

HTTP 403 - Forbidden: your credentials don’t give you access to this resource.

class hp3parclient.exceptions.HTTPNotFound(error=None)[source]

HTTP 404 - Not found

class hp3parclient.exceptions.HTTPMethodNotAllowed(error=None)[source]

HTTP 405 - Method not Allowed

class hp3parclient.exceptions.HTTPNotAcceptable(error=None)[source]

HTTP 406 - Method not Acceptable

class hp3parclient.exceptions.HTTPProxyAuthRequired(error=None)[source]

HTTP 407 - The client must first authenticate itself with the proxy.

class hp3parclient.exceptions.HTTPRequestTimeout(error=None)[source]

HTTP 408 - The server timed out waiting for the request.

class hp3parclient.exceptions.HTTPConflict(error=None)[source]

HTTP 409 - Conflict: A Conflict happened on the server

class hp3parclient.exceptions.HTTPGone(error=None)[source]
HTTP 410 - Indicates that the resource requested is no longer available and
will not be available again.
class hp3parclient.exceptions.HTTPLengthRequired(error=None)[source]
HTTP 411 - The request did not specify the length of its content, which is
required by the requested resource.
class hp3parclient.exceptions.HTTPPreconditionFailed(error=None)[source]
HTTP 412 - The server does not meet one of the preconditions that the
requester put on the request.
class hp3parclient.exceptions.HTTPRequestEntityTooLarge(error=None)[source]
HTTP 413 - The request is larger than the server is willing or able to
class hp3parclient.exceptions.HTTPRequestURITooLong(error=None)[source]

HTTP 414 - The URI provided was too long for the server to process.

class hp3parclient.exceptions.HTTPUnsupportedMediaType(error=None)[source]
HTTP 415 - The request entity has a media type which the server or resource
does not support.
class hp3parclient.exceptions.HTTPRequestedRangeNotSatisfiable(error=None)[source]
HTTP 416 - The client has asked for a portion of the file, but the server
cannot supply that portion.
class hp3parclient.exceptions.HTTPExpectationFailed(error=None)[source]
HTTP 417 - The server cannot meet the requirements of the Expect
request-header field.
class hp3parclient.exceptions.HTTPTeaPot(error=None)[source]

HTTP 418 - I’m a Tea Pot

class hp3parclient.exceptions.HTTPInternalServerError(error=None)[source]

HTTP 500 - Internal Server Error: an internal error occured.

class hp3parclient.exceptions.HTTPNotImplemented(error=None)[source]

HTTP 501 - Not Implemented: the server does not support this operation.

class hp3parclient.exceptions.HTTPBadGateway(error=None)[source]
HTTP 502 - The server was acting as a gateway or proxy and received an
invalid response from the upstream server.
class hp3parclient.exceptions.HTTPServiceUnavailable(error=None)[source]

HTTP 503 - The server is currently unavailable

class hp3parclient.exceptions.HTTPGatewayTimeout(error=None)[source]
HTTP 504 - The server was acting as a gateway or proxy and did
not receive a timely response from the upstream server.
class hp3parclient.exceptions.HTTPVersionNotSupported(error=None)[source]
HTTP 505 - The server does not support the HTTP protocol version used
in the request.
class hp3parclient.exceptions.SSHException(message=None, **kwargs)[source]

This is the basis for the SSH Exceptions.

class hp3parclient.exceptions.SSHInjectionThreat(message=None, **kwargs)[source]
class hp3parclient.exceptions.GrowVolumeException(message=None, **kwargs)[source]
class hp3parclient.exceptions.CopyVolumeException(message=None, **kwargs)[source]
class hp3parclient.exceptions.SetQOSRuleException(message=None, **kwargs)[source]
class hp3parclient.exceptions.ProcessExecutionError(stdout=None, stderr=None, exit_code=None, cmd=None, description=None)[source]

Previous topic

client – HP3ParClient

Next topic

file_client – HP3ParFilePersonaClient

This Page