2.0

Synchronous vs. Asynchronous Responses
When you receive a "202 Accepted" status and a URL, this is an asynchronous response and you must poll to
find out the results of the call. Use GET followed by the URL to retrieve the results of an asynchronous response.
Status Codes
The Data Director API returns a subset of HTTP status codes in the response.
Table 3-2. HTTP Status Codes that the Data Director API Returns
Status Code Status Description
200 OK The request is valid and was completed. The response
includes a document body.
201 Created The request is valid. The requested object was created and
can be found at the URL specified in the Location header.
202 Accepted The request is valid and a task was created to handle it. This
response is usually accompanied by a Location header with
a Task URI.
204 No Content The request is valid and was completed. The response does
not include a body.
400 Bad Request The request body is malformed, incomplete, or otherwise
invalid.
401 Unauthorized An authorization header was expected but not found.
403 Forbidden The requesting user does not have adequate privileges to
access one or more objects specified in the request.
404 Not Found One or more objects specified in the request could not be
found in the specified container.
409 Conflict The object state is not compatible with the requested
operation.
500 Internal Server Error The request was received but could not be completed
because of an internal error at the server.
VMware vFabric Data Director API Programming Guide
16 VMware, Inc.