Request-specific return codes (DELETE directory)

The table below describes the HTTP return codes that have specific meanings for this request. For descriptions of all possible return codes, see HTTP return codes.

Code Meaning Description
200 OK

HCP successfully deleted the directory.

400 Bad Request

The request specified a conditional header, such as If-Match.

If more information about the error is available, the HTTP response headers include the HCP-specific X‑HCP-ErrorMessage header.

403 Forbidden

One of:

The Authorization header or hcp-ns-auth cookie specifies invalid credentials.

The namespace requires client authentication, and the request does not have an Authorization header or hcp-ns-auth cookie.

The specified directory is not empty.

The user doesn’t have delete permission.

The namespace does not exist.

The access method (HTTP or HTTPS) is disabled.

If more information about the error is available, the response headers include the HCP-specific X‑HCP-ErrorMessage header.

404 Not Found

One of:

HCP could not find a directory, object, or version at the specified URL. The specified directory does not exist, or the request specified a directory that has been deleted.

Any component of the URL except for the last component in the path is a symbolic link to a directory.

409 Conflict

HCP could not delete the specified directory because the directory is currently being written to the namespace.

© 2015, 2020 Hitachi Vantara LLC. All rights reserved.