Skip to main content

Errors

How we handle errors

Alloy uses conventional HTTP response codes to indicate the success or failure of an API request. In general:

  • codes in the 2xx range indicate success.

  • codes in the 4xx range indicate an error that failed given the information provided (e.g. a required parameter was omitted, creating an item failed).

  • codes in the 5xx range indicate an error with Alloy's servers. These are rare!

HTTP status code summary

CodeDescription
200 - OKThe request was successful. The requested resource is included in the message body.
204 - No ContentThe request was successful. No message body is returned.
400 - Bad RequestThe request was invalid, often due to missing one or more required parameters.
401 - UnauthorizedNo valid API key was provided.
402 - Request FailedThe parameters were valid but the request failed.
404 - Not FoundThe requested resource doesn't exist.
409 - ConflictThe request conflicts with another request.
429 - Too Many RequestsToo many requests hit the API too quickly. Please reduce the number and rate of your requests.
500, 502, 503, 504 - Server ErrorsSomething went wrong on Alloy's end.

Error types

Error TypeDescription
api_connection_errorFailure to connect to Alloy's API.
api_errorAPI errors cover any other type of problem (e.g., a temporary problem with Alloy's servers), and are extremely uncommon.
authentication_errorFailure to properly authenticate yourself in the request.
invalid_request_errorInvalid request errors arise when your request has invalid parameters.
rate_limit_errorToo many requests hit the API too quickly.
validation_errorErrors triggered by our client-side libraries when failing to validate fields (e.g., when a job number or date is invalid or incomplete).

When Alloy's engine produces an error, it's assigned to one of the following error categories, which are hopefully self explanatory:

  • AIdInvalid
  • AlloyTaskConflict
  • AlloyTaskNotFound
  • AqsInternalFailure
  • AqsInvalidQuery
  • AuthLogNotFound
  • BadRequest
  • BsonDeserializationFailed
  • BsonSerializationFailed
  • BulkActionNotFound
  • CacheGetFailed
  • CacheStoreFailed
  • CardCreateForbidden
  • CardDeleteForbidden
  • CardEditForbidden
  • CardNotFound
  • CardPermissionAlreadyPresent
  • CardQueryInvalid
  • CardQueryNotFound
  • CardReadForbidden
  • CardSignatureMismatch
  • CircularDependency
  • CustomerCreateForbidden
  • CustomerDeleteForbidden
  • CustomerEditForbidden
  • CustomerNotEnabled
  • CustomerNotFound
  • CustomerReadForbidden
  • CustomerSettingNotFound
  • CustomerSignatureMismatch
  • CustomerUnauthorized
  • CustomerUserAlreadyExists
  • CustomerUserNotFound
  • DatabaseConnection
  • DatabaseDocumentUniqueConstraint
  • DatabaseNestedError
  • DatabaseNotFound
  • DatabaseParameterInvalid
  • DatabaseTransientError
  • DatabaseUniqueConstraint
  • DefaultUserAlreadyExists
  • DesignCreateForbidden
  • DesignDeleteForbidden
  • DesignEditForbidden
  • DesignInterfaceCreateForbidden
  • DesignInterfaceDeleteForbidden
  • DesignInterfaceEditForbidden
  • DesignInterfaceForbidden
  • DesignInterfaceNotFound
  • DesignInterfacePermissionAlreadyPresent
  • DesignInterfaceReadForbidden
  • DesignInterfaceSignatureMismatch
  • DesignInvalidGeometry
  • DesignNotFound
  • DesignPermissionAlreadyPresent
  • DesignReadForbidden
  • DesignSignatureMismatch
  • DocumentDeleteFailed
  • DocumentEditFailed
  • DodiAttributeCodeUniqueViolated
  • DodiAttributeCreateForbidden
  • DodiAttributeDeleteForbidden
  • DodiAttributeEditForbidden
  • DodiAttributeInUse
  • DodiAttributeLinkItemNotFound
  • DodiAttributeNotFound
  • DodiAttributeNotInDesign
  • DodiAttributeOptionConstraintViolated
  • DodiAttributeOptionInvalid
  • DodiAttributeOptionNotFound
  • DodiAttributeOptionsMalformed
  • DodiAttributePermissionAlreadyPresent
  • DodiAttributeReadForbidden
  • DodiAttributeReadonlyViolated
  • DodiAttributeRelationConstraintViolated
  • DodiAttributeRequiredViolated
  • DodiAttributeTypeViolated
  • DodiAttributeUniqueViolated
  • DodiAttributeWriteForbidden
  • DodiConstraint
  • DodiNotFound
  • EngineInitialization
  • EngineNotInitialized
  • ExportFormatNotSupported
  • ExportTaskFileNotFound
  • FileConflict
  • FileDeletionFailed
  • FileDownloadFailed
  • FileGenericError
  • FileListFailed
  • FileNotFound
  • FileUnauthorized
  • FileUploadFailed
  • FolderForbidden
  • FolderNotFound
  • ForgeAccessForbidden
  • ForgeException
  • ForgeModuleNotFound
  • ForgeParameterInvalid
  • ForgeParameterNotFound
  • ForgeReferenceNotFound
  • ForgeTaskNotFound
  • GeoJsonSridNotSupported
  • GucInvalid
  • ImportConstraintViolated
  • ImportConversion
  • ImportDeleteForbidden
  • ImportFileBadFormat
  • ImportFileNotSupported
  • ImportNotFound
  • ImportReadForbidden
  • ImportRecordNotFound
  • ImportSignatureMismatch
  • ImportWrongState
  • IncorrectConfiguration
  • InternalError
  • ItemCreateForbidden
  • ItemDeleteForbidden
  • ItemEditForbidden
  • ItemGeometryConstraintViolated
  • ItemLogNotFound
  • ItemNotFound
  • ItemParentsConstraintViolated
  • ItemReadForbidden
  • ItemSignatureMismatch
  • ItemSyncForbidden
  • ItemVersionNotFound
  • JsonDeserializationFailed
  • JsonSerializationFailed
  • LayerClusterTileNotFound
  • LayerCreateForbidden
  • LayerDeleteForbidden
  • LayerEditForbidden
  • LayerNotFound
  • LayerPermissionAlreadyPresent
  • LayerReadForbidden
  • LayerSignatureMismatch
  • LayerStyleMalformed
  • LayerStyleNotFound
  • LayerTileRequestMalformed
  • LogNotFound
  • MasterSettingNotFound
  • MeshCreateForbidden
  • MeshDeleteForbidden
  • MeshEditForbidden
  • MeshNotFound
  • MeshPermissionAlreadyPresent
  • MeshReadForbidden
  • MeshSignatureMismatch
  • MissingRequestHeader
  • MissingRequestParameter
  • ModelValidationFailed
  • ModuleCreateForbidden
  • ModuleDeleteForbidden
  • ModuleEditForbidden
  • ModuleNotFound
  • ModuleSignatureMismatch
  • MongoBackupFailed
  • MongoRestoreFailed
  • ReadonlyUserNotFound
  • ReportSignatureMismatch
  • ReportWrongDesign
  • RouteCouldNotBeGenerated
  • RouteItemGeometry
  • RouteNotFound
  • RouteOsrmException
  • ScheduleNotFound
  • ScheduleSignatureMismatch
  • SystemLogNotFound
  • SystemUnderMaintenance
  • ThumbnailNotFound
  • UpgradeInternalError
  • UserBadPassword
  • UserBotCreateForbidden
  • UserBotNotFound
  • UserCreateForbidden
  • UserDeleteForbidden
  • UserDisableForbidden
  • UserEditForbidden
  • UserForbidden
  • UserGroupAddingExistentUser
  • UserGroupCreateForbidden
  • UserGroupDeleteForbidden
  • UserGroupEditForbidden
  • UserGroupNotFound
  • UserGroupRemovingNonExistentUser
  • UserGroupSignatureMismatch
  • UserInvalidResetToken
  • UserNotFound
  • UserPasswordResetForbidden
  • UserReadForbidden
  • UserSessionInvalid
  • UserSessionNotFound
  • UserSignatureMismatch
  • UserUnauthorized
  • WebhookCreation
  • WebhookForbidden
  • WebhookGeneric
  • WebhookRegistrationNotFound
  • WebhookTriggerFailed
  • WorkflowActionNotFound
  • WorkflowCreateForbidden
  • WorkflowDeleteForbidden
  • WorkflowEditForbidden
  • WorkflowLogNotFound
  • WorkflowMalformed
  • WorkflowNotFound
  • WorkflowPermissionAlreadyPresent
  • WorkflowReadForbidden
  • WorkflowSignatureMismatch