Skip to main content

Response codes

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

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

CodeDescriptionComments
200OK The request completed successfully. If a single query parameter is specified and the value of that parameter has no matches, the response body returns default values. If a list of query parameters is specified and the value of at least one parameter has no matches, the response body returns only what matches.
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.
204No ContentThe request completed successfully, but no response content is returned (for example, a successful DELETE request).
206Partial ContentPartial content was returned for a multi-part response. The response header includes a content-range header field indicating the range that is included in the response body for each part.
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.

For GET requests, this code is returned when the user session is expired because the web inactivity session time-out expired or the mandatory session expiration time was exceeded. You must log in again to view data. For information about session time-outs, see Configuring user security settings.

403ForbiddenThe orchestrator server was prevented from fulfilling the request. A descriptive error message is returned in the response body.
404Not foundThe resource cannot be found. A descriptive error message is returned in the response body.
405Method Not AllowedThe resource is invalid. A descriptive error message is returned in the response body.
406Not AcceptableThe request cannot be fulfilled. A descriptive error message is returned in the response body.

POST, PUT, PATCH, and DELETE requests return 406 when the user session is expired because the Web inactivity session for full operations timeout expired or the mandatory session expiration time was exceeded. You must log in again to modify data. For information about session timeouts, see Configuring user security settings.

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.
410GoneThe resource no longer available. 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.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.