These docs are for v2.6. Click to read the latest docs for v3.2.

Error Codes and Messages

1. Credolab Error Codes

HTTP status codeDescription
400The server cannot or will not process the request due to an apparent client error (for example, some required field is empty)
401You do not have the authentication (either not authenticated at all or authenticated incorrectly); please re-authenticate and try again.
403The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource
404The requested resource could not be found
405A request method is not supported for the requested resource; for example, a GET request on a form that requires data to be presented via POST, or a PUT request on a read-only resource.
410Indicates that the requested resource is no longer available(e.g. dataset file has been deleted from the server)
415The request entity has a media type that the server (or resource) does not support, or the media type is missed.
500A generic error message is given when an unexpected condition is encountered on the service
503Credolab server availability issue



2. Credolab Error Messages

Credolab informs API clients of both the high-level error class (using the status code) and the finer-grained details of the problem (using HTTP response body with content type: application/problem+json). 

The latest approach is [RFC 7807]-based.

An exception has up to four properties:

PropertyDescription
Status (integer)The HTTP status code [RFC 7231] for the exception.
Title (string)A short, human-readable summary of the problem type.
Detail (string)A human-readable explanation is specific to this occurrence of the problem.
Type (string)A URI reference that identifies the problem type.

Example:

{
    "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
    "title": "subscription_suspended",
    "status": 400,
    "detail": "Unable to login to the suspended subscription"
}

Credolab API performs validation of data models that are passed as the body parameters, thus responding with 400(Bad request) status code, e.g:

{
    "errors": {
        "password": [
            "Password is required"
        ],
        "userEmail": [
            "Email is required"
        ]
    },
    "title": "One or more validation errors occurred.",
    "status": 400
}

Below is the list of the supported error messages for the API actions provided by credolab.

Account API

ActionStatusTitleDetails
api/account/v1/credoAppLogin400subscription_suspendedUnable to log in to the suspended subscription
api/account/v1/credoAppLogin400auth_key_invalidThe auth key is invalid
api/account/v1/login400user_credentials_invalidThe user email or password is invalid
api/account/v1/login400subscription_suspendedUnable to log in to the suspended subscription
api/account/v1/login400profile_inactiveYour profile is inactive. Please contact your subscription administrator

Upload API

ActionStatusTitleDetails
api/datasets/v1/upload400reference_number_invalidreferenceNumber is required field
api/datasets/v1/upload400reference_number_invalidreferenceNumber can't start/end with whitespaces
api/datasets/v1/upload400reference_number_invalidreferenceNumber has max length of 100
api/datasets/v1/upload400reference_number_invalidreferenceNumber can't contain /
api/datasets/v1/upload400reference_number_not_uniqueThe reference number is not unique
api/datasets/v1/upload400real_ip_invalidclientIp is required
api/datasets/v1/upload400data_invaliddata is required
api/datasets/v1/upload400data_invalidDecryption error occured
api/datasets/v1/upload400data_invalidException during decompression occured
api/datasets/v1/upload400reference_number_expiredDataset already expired

DataSets API

ActionStatusTitleDetails
v6.0/datasets/{referenceNumber}/datasetinsight404reference_number_invalidThe specified dataset does not exist on the server
v6.0/datasets/{referenceNumber}/datasetinsight400insights_is_not_configuredSubscription has no insight configured for the dataset requested
v6.0/datasets/{referenceNumber}/datasetinsight400reference_number_requiredReference number parameter is empty
v6.0/datasets/{referenceNumber}/datasetinsight410dataset_removedThe specified dataset has been removed due to retention policies
v6.0/datasets/{referenceNumber}/datasetinsight400state_is_not_completeDataset is not in the complete state
v6.0/datasets/{referenceNumber}/datasetinsight400state_is_expiredReference number has expired