Skip to main content

REST API response codes

The Lenovo XClarity Administrator REST APIs use the HTTP protocol for sending and retrieving data. Client code using the REST APIs makes an HTTP request to the Lenovo XClarity Administrator server and processes the HTTP response accordingly. Included with the HTTP response data is the HTTP response code. The response code provides some indication as to the success of the HTTP request and can provide information on how to handle the included response data.

The following table lists some of the most common response codes.

CodeDescriptionComments
200OKThe request completed successfully.
201CreatedOne or more new resources were successfully created.
202AcceptedThe request has been accepted for processing, but the processing has not yet completed. The request might or might not be acted upon, depending on the results of the processing.
203FoundThe URL changed. The response header returns the correct URL in the Location field.
204No ContentThe request completed successfully, but no response content is returned.
206Partial ContentThe part, but not all, of the request completed successfully.
307Temporary RedirectThe URL changed for this REST API. The response header returns the correct URL in the Location attribute.
400Bad RequestA query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body.
401UnauthorizedThe user cannot be authenticated. Authentication has not been provided or has failed. A descriptive error message is returned in the response body.
403ForbiddenThe orchestrator server was prevented from fulfilling the request. A descriptive error message is returned in the response body. Ensure that you have privileges to perform the request.

For XClarity Administrator advanced functions, ensure that you have active licenses for each managed server that supports the advanced functions.

404Not foundA specified resource cannot be found. A descriptive error message is returned in the response body.
405Method Not AllowedA specified resource is invalid. A descriptive error message is returned in the response body.
406Not SupportedA specified resource is not supported or not available for connection. A descriptive error message is returned in the response body.
408Request TimeoutThe orchestrator server did not receive a required request in a specific amount of time. A descriptive error message is returned in the response body.
409ConflictThere is a conflict with the current state of the resource. A descriptive error message is returned in the response body.
412Precondition failedSpecified data is invalid because of missing values. A descriptive error message is returned in the response body.
413Request Entity Too LargeClients might impose limitations on the length of the request URI, and the request URI is too long to be handled. A descriptive error message is returned in the response body.
423LockedThe source or target resource is locked. A descriptive error message is returned in the response body.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.
503Service Unavailable The server is not ready to handle the request.