Connect API Errors
Common HTTP error codes returned by the Connect API and their meaning.
Error responses have the same overall structure across the different Composable Commerce APIs. General errors, such as ConcurrentModification are returned across all APIs. API-specific errors, are only returned for a specific set of endpoints and update actions.
Representations
ErrorResponse
Base representation of an error response containing common fields to all errors.
statusCodeInt | HTTP status code corresponding to the error. |
messageString | First error message in the |
errorsArray of ErrorObject | Errors returned for a request. A single error response can contain multiple errors if the errors are related to the same HTTP status code such as |
{"statusCode": 400,"message": "First error message.","errors": [{"code": "InvalidJsonInput","message": "First error message.","detailedErrorMessage": ""},{"code": "InvalidJsonInput","message": "Second error message.","detailedErrorMessage": ""}]}
ErrorObject
Represents a single error. Multiple errors may be included in an ErrorResponse.
codeString | Error identifier. |
messageString | Plain text description of the cause of the error. |
//Any string parameter matching this regular expression | Error-specific additional fields. |
General errors
400 Bad Request
The following general error codes can appear in responses with the HTTP status code 400:
InvalidJsonInput
Returned when an invalid JSON input has been sent. Either the JSON is syntactically incorrect or does not conform to the expected shape (for example is missing a required field).
The client application should validate the input according to the constraints described in the error message before sending the request.
codeString | "InvalidJsonInput" |
messageString |
|
detailedErrorMessageString | Further explanation about why the JSON is invalid. |
InvalidQueryParam
Returned when an invalid query parameter has been sent.
codeString | "InvalidQueryParam" |
messageString |
|
detailedErrorMessageString | Further explanation about why the query parameter is invalid. |
InvalidPathParam
Returned when an invalid path parameter has been sent.
codeString | "InvalidPathParam" |
messageString |
|
detailedErrorMessageString | Further explanation about why the path parameter is invalid. |
DuplicateField
Returned when a field value conflicts with an existing value causing a duplicate.
codeString | "DuplicateField" |
messageString |
|
fieldString | Name of the conflicting field. |
duplicateValueAny | Conflicting duplicate value. |
FieldValueNotFound
Returned when a value for a field is not found.
codeString | "FieldValueNotFound" |
messageString |
|
fieldString | Name of the field. |
valueAny | Conflicting value. |
GitRepositoryNotReachableError
Returned when the GitHub repository is unreachable or not found.
codeString | "GitRepositoryNotReachable" |
messageString |
|
403 Forbidden
Returned when the client does not have sufficient permissions for this operation.
codeString | "AuthorizationError" |
messageString |
|
404 Not Found
The following general error codes can appear in responses with the HTTP status code 404:
ResourceNotFound
Returned when the resource addressed by the request URL does not exist.
codeString | "ResourceNotFound" |
messageString |
|
409 Conflict
The following general error codes can appear in responses with the HTTP status code 409:
ConcurrentModification
Returned when the request conflicts with the current state of the involved resources. Typically, the request attempts to modify a resource that is out of date (that is modified by another client since it was last retrieved). The client application should resolve the conflict (with or without involving the end user) before retrying the request.
codeString | "ConcurrentModification" |
messageString |
|
expectedVersionInt | Expected version of the resource. |
currentVersionInt | Current version of the resource. |
500 Internal Server Error
The following general error codes can appear in responses with the HTTP status code 500:
General
Returned when a server-side problem occurs before or after data persistence. In some cases, the requested action may successfully complete after the error is returned. Therefore, it is recommended to verify the status of the requested resource after receiving a 500 error.
If you encounter this error, report it to the Connect support team.
codeString | "General" |
messageString | Description about any known details of the problem, for example, |
502 Bad Gateway
The following general error codes can appear in responses with the HTTP status code 502:
BadGateway
Returned when a server-side problem is caused by scaling infrastructure resources.
The client application should retry the request with exponential backoff up to a point where further delay is unacceptable.
codeString | "BadGateway" |
messageString | Plain text description of the error. |
API-specific errors
Connectors
400 Bad Request
ConnectorAlreadyCertified
Returned when trying to certify a Connector that is already certified.
The error is returned as a failed response to the Publish update action only when certification is required.
codeString | "ConnectorAlreadyCertified" |
messageString |
|
ConnectorReferenceNotFoundError
Returned when the referenced Connector was not found.
codeString | "ConnectorReferenceNotFound" |
messageString |
|
ConnectorSpecificationFileNotFoundError
Returned when the Connector specification file was not found.
codeString | "ConnectorSpecificationFileNotFound" |
messageString |
|
ConnectorSpecificationFileNotValidError
Returned when the Connector specification file is not valid.
codeString | "ConnectorSpecificationFileNotValid" |
messageString |
|
ConnectorStagedInCertification
Returned when trying to publish a Connector that requires certification but is already in the certification process.
The error is returned as a failed response to the Publish update actiononly when certification is required.
codeString | "ConnectorStagedInCertification" |
messageString |
|
ConnectorStagedNotPreviewable
Returned when a ConnectorStaged to be deployed is not previewable.
The error is returned as a failed response to the Create a Deployment request.
codeString | "ConnectorStagedNotPreviewable" |
messageString |
|
ConnectorStagedNotPrivate
Returned when attempting to change the privateProjects of a non-private ConnectorStaged.
The error is returned as a failed response to the Add Project to Private Connector and Remove Project from Private Connector update actions.
codeString | "ConnectorStagedNotPrivate" |
messageString |
|
ConnectorStagedPreviewRequestUnderProcess
Returned when attempting to request previewable status of a ConnectorStaged that is currently being reviewed for previewable status.
The error is returned as a failed response to the Preview Connector update action.
codeString | "ConnectorStagedPreviewRequestUnderProcess" |
messageString |
|
Deployments
400 Bad Request
DeploymentUnsupportedRegion
Returned when the Deployment region is not supported.
The error is returned as a failed response to the Create a Deployment request.
codeString | "DeploymentUnsupportedRegion" |
messageString |
|
DeploymentUnknownApplicationConfiguration
Returned when the Deployment contains configuration values that are not defined in the Connect application's connect.yaml file.
The error is returned as a failed response to the Redeploy update action and Create a Deployment request.
codeString | "DeploymentUnknownApplicationConfiguration" |
messageString |
|
DeploymentUnknownApplicationConfigurationKey
Returned when the Deployment contains a configuration key that is not defined in the Connect application's connect.yaml file.
The error is returned as a failed response to the Redeploy update action and Create a Deployment request.
codeString | "DeploymentUnknownApplicationConfigurationKey" |
messageString |
|
DeploymentInvalidStatusTransition
Returned when the Deployment operation results in a invalid status transition.
The error is returned as a failed response to the Redeploy update action.
The message will contain Already queued, Already deploying, or Already undeploying based on the DeploymentStatus of the Deployment.
codeString | "DeploymentInvalidStatusTransition" |
messageString |
|
DeploymentMissingGlobalConfigurationKey
Returned when a required global configuration key is missing.
codeString | "DeploymentMissingGlobalConfigurationKey" |
messageString |
|
DeploymentUnknownGlobalConfigurationKey
Returned when attempting to provide a nonexistent global configuration.
codeString | "DeploymentUnknownGlobalConfigurationKey" |
messageString |
|
DeploymentEmptyRequiredGlobalConfigurationKey
Returned when a required global configuration key has an empty value.
codeString | "DeploymentEmptyRequiredGlobalConfigurationKey" |
messageString |
|
422 Unprocessable Content
DeploymentApplicationDoNotBelong
Returned when attempting to add an application that does not belong to the Deployment.
codeString | "DeploymentApplicationDoNotBelong" |
messageString |
|
DeploymentApplicationRequired
Returned when a Deployment does not contain any applications.
codeString | "DeploymentApplicationRequired" |
messageString |
|
DeploymentConnectorUpdateFailure
Returned when updating a Connector fails during redeployment.
codeString | "DeploymentConnectorUpdateFailure" |
messageString |
|