reviewboard.webapi.errors¶
Review Board API errors.
This builds upon the djblets.webapi.errors
module, which contains
API errors provided by Djblets.
- UNSPECIFIED_DIFF_REVISION = <API Error 200, HTTP 400: Diff revision not specified.>¶
An error indicating a diff revision was missing in the request.
- INVALID_DIFF_REVISION = <API Error 201, HTTP 404: Invalid diff revision.>¶
An error indicating a provided diff revision was invalid.
- INVALID_ACTION = <API Error 202, HTTP 400: Invalid action specified.>¶
An error indicating a provided action was invalid.
This is not used by Review Board and is considered deprecated.
Deprecated since version 6.0.
- INVALID_CHANGE_NUMBER = <API Error 203, HTTP 404: The commit ID specified could not be found.>¶
An error indicating a commit ID could not be found in the repository.
- CHANGE_NUMBER_IN_USE = <API Error 204, HTTP 409: The commit ID specified has already been used.>¶
An error indicating a commit ID is in use by another review request.
For historical reasons, this is only used when creating review requests or drafts, and applies to
commit_id
orchangenum
values.
- MISSING_REPOSITORY = <API Error 205, HTTP 400: There was no repository found at the specified path.>¶
An error indicating a repository could not be found at a path.
- INVALID_REPOSITORY = <API Error 206, HTTP 400: The repository path specified is not in the list of known repositories.>¶
An error indicating a provided repository path/ID is invalid.
- REPO_FILE_NOT_FOUND = <API Error 207, HTTP 400: The file was not found in the repository.>¶
An error indicating a file could not be found in a repository.
- INVALID_USER = <API Error 208, HTTP 400: User does not exist.>¶
An error indicating a provided user does not exist.
This is used when adding users to repositories, groups, or review requests as reviewers.
- REPO_NOT_IMPLEMENTED = <API Error 209, HTTP 501: The specified repository is not able to perform this action.>¶
An error indicating a repository request is not supported.
This is used when a repository does not support fetching additional information, such as repository metadata, commits, or branches.
- REPO_INFO_ERROR = <API Error 210, HTTP 500: There was an error communicating with this repository.>¶
An error indicating failure fetching information from a repository.
This is used when there’s a communication error fetching state or performing actions on a repository.
- NOTHING_TO_PUBLISH = <API Error 211, HTTP 400: You attempted to publish a review request without any modifications.>¶
An error indicating a publish failed due to a lack of changes.
- EMPTY_CHANGESET = <API Error 212, HTTP 400: The commit ID specified represents an empty changeset.>¶
An error indicating a commit ID represents an empty changeset.
- SERVER_CONFIG_ERROR = <API Error 213, HTTP 500: There was an error storing configuration on the server.>¶
An error indicating a problem storing server-side configuration state.
This is used when failing to store settings, certificate approvals, credentials, or other data on a Review Board server.
- BAD_HOST_KEY = <API Error 214, HTTP 403: The SSH key on the host does not match the stored key.>¶
An error indicating a stored SSH host key does not match the server.
- UNVERIFIED_HOST_KEY = <API Error 215, HTTP 403: The SSH key on the host is unverified.>¶
An error indicating a SSH host key from a server is not verified.
- UNVERIFIED_HOST_CERT = <API Error 216, HTTP 403: The HTTPS certificate on the host is unverified.>¶
An error indicating a SSL certificate from a server is not verified.
- MISSING_USER_KEY = <API Error 217, HTTP 403: A public SSH key was requested, but no SSH key was available to send.>¶
An error indicating a public SSH key is not available for the server.
- REPO_AUTHENTICATION_ERROR = <API Error 218, HTTP 403: Unable to authenticate with the repository using the provided credentials.>¶
An error indicating an authentication error with a repository.
- DIFF_EMPTY = <API Error 219, HTTP 400: The specified diff file is empty.>¶
An error indicating a provided diff is empty.
- DIFF_TOO_BIG = <API Error 220, HTTP 400: The specified diff file is too large.>¶
An error indicating a provided diff exceeds configured size limits.
- FILE_RETRIEVAL_ERROR = <API Error 221, HTTP 500: There was an error fetching a source file.>¶
An error indicating a failure retrieving a file from a repository
This is used when a file should be present but unexpectedly could not be retrieved.
- HOSTINGSVC_AUTH_ERROR = <API Error 222, HTTP 403: There was an error authorizing with a service.>¶
An error indicating an authenticatiion error with a hosting service.
- GROUP_ALREADY_EXISTS = <API Error 223, HTTP 409: A group with this name already exists.>¶
An error indicating a review group already exists.
- DIFF_PARSE_ERROR = <API Error 224, HTTP 400: The specified diff file could not be parsed.>¶
An error indicating a provided diff could not be parsed.
- PUBLISH_ERROR = <API Error 225, HTTP 500: An error occurred during publishing.>¶
An error indicating a review request could not be published.
This is used if there’s an error publishing the review request due to missing state, a validation error, or an extension-provided failure.
- USER_QUERY_ERROR = <API Error 226, HTTP 500: An error occurred querying the user list.>¶
An error indicating a user could not be queried from an auth backend.
- COMMIT_ID_ALREADY_EXISTS = <API Error 227, HTTP 409: ('Review request with this commit ID already exists.',)>¶
An error indicating a commit ID is in use by another review request.
For historical reasons, this is only used when updating review requests or drafts.
See
CHANGE_NUMBER_IN_USE
.
- TOKEN_GENERATION_FAILED = <API Error 228, HTTP 500: There was an error generating the API token. Please try again.>¶
An error indicating an API token could not be generated.
- REPOSITORY_ALREADY_EXISTS = <API Error 229, HTTP 409: A repository with this name already exists.>¶
An error indicating a repository already exists.
This is used when trying to create a repository that conflicts with an existing repository.
- CLOSE_ERROR = <API Error 230, HTTP 500: An error occurred while closing the review request.>¶
An error indicating a failure closing a review request.
- REOPEN_ERROR = <API Error 231, HTTP 500: An error occurred while reopening the review request.>¶
An error indicating a failure reopening a review request.
- REVOKE_SHIP_IT_ERROR = <API Error 232, HTTP 500: An error occurred while revoking the Ship It for a review.>¶
An error indicating a failure revoking a Ship It!
- READ_ONLY_ERROR = <API Error 233, HTTP 503: The site is currently in read-only mode.>¶
An error indicating the site is in read-only mode.
This is used when attempting to perform operations that may write to the server without permission while in Read-Only Mode,
- INVALID_GROUP = <API Error 234, HTTP 400: Group does not exist.>¶
An error indicating a review group does not exist.