HPE Developer Community Portal

HTTP error code reference

Use this reference for information about the HTTP error codes returned by the REST API. The error codes are returned in the status field of the JSON error response body.

400-Bad Request

ExceptionDescription
InvalidBodyExceptionYou tried to pass invalid information in the body of a POST or PUT request.
InvalidParameterExceptionYou passed an invalid query parameter.
InvalidSortCriteriaExceptionYou passed an invalid limit or sort criteria query parameter.
ObjectInUseExceptionYou tried to DELETE a policy that is in use by a datastore or virtual machine.
PermissionDeniedExceptionYou tried to view or modify an object without the required permissions.
TypeMismatchExceptionYou passed in an incorrect object type. For example, you passed in a String, but an Integer was expected.

401—Unauthorized

ExceptionDescription
SvtExceptions$UnauthorizedExceptionYou submitted an invalid access token or the access token has expired. Tokens expire after 24 hours or after 10 minutes of inactivity.

404—Not Found

ExceptionDescription
ObjectNotFoundExceptionYou tried to GET or act on an object, but the object cannot be found.

405—Method Not Allowed

ExceptionDescription
HttpRequestMethodNotSupportedExceptionYou tried to perform an HTTP operation on a resource that is not supported.

413—Payload Too Large

ExceptionDescription
BodyTooLargeExceptionYou submitted a request body that is too large.

415—Unsupported Media Type

ExceptionDescription
HttpMediaTypeNotSupportedExceptionYou submitted a PUT or POST request and the content type that is not valid. For example: Content type 'application/xml' not supported.

500—Internal Server Error

ExceptionDescription
InternalServerExceptionYou submitted a request, there are unexpected problems. Check the log for more details.

502—Bad Gateway

ExceptionDescription
Bad GatewayThere are too many simultaneous REST requests.

504—Gateway Timeout

ExceptionDescription
Gateway Time-outThe REST request took more than 60 seconds to complete.

Blog feed