# API status code from Seven Bridges API v2 specification
# https://docs.sevenbridges.com/reference#api-status-codes
.sb_api_status_code <- list(
# 0xxx: Platform maintenance errors
"0" = "The Platform is currently under maintenance.",
# 1xxx: General errors
"1000" = "Rate limit exceeded! Check response headers.",
# 2xxx: User errors
"2000" = "User service is currently unavailable.",
"2001" = "Not enough privileges to access requested user info.",
"2002" = "Requested user does not exist.",
"2003" = "Requested user already exists.",
# 3xxx: Projects errors
"3000" = "Project service is currently unavailable.",
"3001" = "Not enough privileges to access the requested project/member.",
"3002" = "Requested project or member does not exist.",
"3003" = "Requested project/member already exists.",
"3004" = "Owner's username must not be null or empty string.",
"3005" = "Member username must not be null or empty string.",
"3006" = "Project id must not be null or an empty string.",
"3007" = "Project name must not be null or empty string.",
"3008" = "Billing group id must not be null or empty string.",
"3009" = "Project type must not be null or empty string.",
"3010" = "Project type can be either v2 for standard projects or v1 for LEGACY projects.",
"3011" = "Project permissions must not null or an empty value.",
"3012" = "Malformed project id. Expecting `owner/project`.",
"3013" = "Please provide all permissions data.",
# 4xxx: Billing errors
"4000" = "Billing service is currently unavailable.",
"4001" = "Insufficient privileges to access the requested billing group/invoice.",
"4002" = "Requested billing group/invoice does not exist.",
"4003" = "Requested billing group/invoice already exist.",
"4004" = "Billing group id must not be null or an empty string.",
"4005" = "Billing group id must be a valid UUID.",
"4006" = "You are not a member of this billing group.",
"4007" = "Invoice id must not be null or an empty string.",
# 5xxx: Files errors
"5000" = "File service is currently unavailable.",
"5001" = "Insufficient privileges to access the requested file.",
"5002" = "Requested file does not exist.",
"5003" = "Requested file already exists.",
"5004" = "File id must not be null or an empty string.",
"5005" = "Malformed project query parameter. Expecting `?project=owner/project`",
"5006" = "Metadata validation failed.",
"5007" = "File copy failed.",
"5008" = "File renaming not allowed.",
"5009" = "Modifying metadata is not allowed.",
"5010" = "Metadata service is currently unavailable.",
"5011" = "Modifying file tags is not allowed.",
"5012" = "Invalid `type` supplied. Allowed values: [folder].",
"5014" = "Insufficient privileges to copy the requested file.",
"5015" = "Moving files between projects is not supported.",
"5017" = "Downloading folders is not supported.",
"5018" = "Copying folders is not supported.",
"5019" = "Archiving folders is not supported.",
"5020" = "Restoring folders is not supported.",
"5021" = "Deleting non-empty folders is not supported.",
"5022" = "The parent specified is not a folder.",
"5023" = "Updating folder details is not supported.",
"5024" = "Invalid name parameter. Check the documentation.",
"5025" = "Updating folder metadata is not supported.",
"5026" = "Destination folder is not found.",
"5027" = "Updating folder tags is not supported.",
"5029" = "Missing `parent` or `project` field. These fields must be included together.",
"5030" = "Requested folder already exists.",
"5031" = "Providing both `parent` and `project` is not allowed.",
"5032" = "Insufficient privileges to move the requested file.",
"5033" = "Invalid request please check the documentation.",
# 6xxx: Apps errors
"6000" = "App service is currently unavailable.",
"6001" = "Insufficient privileges to access the requested app/revision.",
"6002" = "Requested app/revision does not exist.",
"6003" = "Requested app/revision already exists.",
"6004" = "App name must not be null or an empty string.",
"6006" = "Project owner must not be null or an empty string.",
"6007" = "Project must not be null or an empty string.",
"6008" = "App revision must not be null or an empty string.",
"6009" = "Destination project must not be null or an empty string.",
"6010" = "Source app must not be null or an empty string.",
"6011" = "Malformed app id. Expecting `owner/project/app_name/revision`.",
"6012" = "Invalid visibility query parameter. Allowed values: [PUBLIC, PRIVATE].",
# 7xxx: Tasks errors
"7000" = "Task service is currently unavailable.",
"7001" = "Insufficient privileges to access the requested task.",
"7002" = "Requested task does not exist.",
"7003" = "Requested task already exists.",
"7004" = "Task ID must not be empty or null or an empty string.",
"7005" = "Task ID must be a valid UUID.",
"7006" = "Invalid task status. Allowed values: [QUEUED, DRAFT, RUNNING, COMPLETED, ABORTED, ABORTING, FAILED]",
"7007" = "This action is only available for DRAFT tasks.",
"7008" = "This action is only available for RUNNING tasks.",
"7009" = "Invalid task action. Action can be performed only on DRAFT or RUNNING tasks.",
"7010" = "Invalid task action. Action can be performed on DRAFT tasks.",
"7011" = "Invalid task action. Action can be performed on tasks in the states: CREATING, RUNNING or QUEUED.",
"7012" = "Missing inputs.",
"7013" = "Invalid task action.",
"7014" = "Action parameter must not be null or an empty string.",
"7015" = "App Id must not be null or an empty string.",
"7016" = "Invalid app url.",
"7017" = "Only Common Workflow Language (CWL) tasks are supported.",
"7018" = "Batch input property should reference input identifier or omitted. Empty value is not allowed.",
"7019" = "Missing batch criteria.",
"7020" = "Invalid batch type supplied. Allowed values: [criteria, item].",
"7021" = "Batching can only be disabled if the task is submitted for execution.",
"7022" = "Disabling batching action is only available for BATCH tasks.",
"7023" = "Missing batch_by or batch_input fields. These fields must be included together.",
"7024" = "Task cannot be started due to validation errors.",
"7026" = "Editing is available only for tasks which are in DRAFT status. Tasks which are in RUNNING and COMPLETED states can only be renamed.",
# 8xxx: Upload errors
"8000" = "Upload service is currently unavailable.",
"8001" = "Insufficient privileges to access the requested upload.",
"8002" = "Insufficient privileges to access the requested file.",
"8003" = "Requested upload does not exist.",
"8004" = "Requested file already exists.",
"8005" = "Requested file does not exist.",
"8006" = "Requested upload already exists.",
"8007" = "Failed to complete upload.",
"8008" = "Failed to reserve part for upload. Try again.",
"8009" = "Failed to abort upload.",
"8010" = "Malformed project id. Expecting `owner/project`.",
"8011" = "Upload id must not be null or an empty string.",
"8012" = "Part number is missing or invalid.",
"8013" = "Invalid `init` request.",
"8014" = "Invalid `part` report.",
"8015" = "Invalid list of parts. Expecting an object with `parts`: [ array of part reports ].",
# 9xxx: Volumes errors
"9000" = "There was an error communicating with the service.",
"9001" = "Could not obtain read access on the service.",
"9002" = "Could not obtain cross-write access on the service.",
"9003" = "Insufficient privileges to access the requested project.",
"9004" = "Insufficient privileges to access the requested file.",
"9005" = "Insufficient privileges to access the requested job.",
"9006" = "Requested file cannot be exported.",
"9007" = "Requested volume does not exist.",
"9008" = "Requested job does not exist.",
"9009" = "Requested file does not exist.",
"9010" = "Requested volume name already exists.",
"9011" = "Invalid request syntax.",
"9012" = "Requested project or member does not exist.",
"9013" = "Volume name must not be null or an empty string.",
"9014" = "Volume name must consist of up to 32 English letters, numbers and underscores.",
"9015" = "`access_mode` must be provided (either `RO` or `RW`).",
"9016" = "`service` object must be provided.",
"9017" = "`service` object is invalid. Check the documentation.",
"9018" = "Cannot infer file name and none given.",
"9019" = "`service` object is invalid. Check the documentation.",
"9020" = "Insufficient privileges to access the requested volume.",
"9021" = "Invalid time format. Check the documentation.",
"9022" = "Invalid canned ACL selected (`aws_canned_acl`). Check the documentation.",
"9032" = "Invalid server-side encryption selected (`sse_algorithm`). Check the documentation.",
"9024" = "Invalid S3 storage class selected (`aws_storage_class`). Check the documentation.",
"9025" = "Invalid private key given (`private_key`). Check the documentation.",
"9026" = "The volume is not configured for writing access (`access mode` is not set to `RW`).",
"9027" = "Exporting files across different cloud services is not yet supported.",
"9028" = "Exporting files across different cloud services is not yet supported.",
"9030" = "Volume name must consist of up to 32 English letters, numbers, and underscores.",
"9057" = "This environment only supports `RO` buckets of type `GCS`.",
"9058" = "This environment only supports `RO` buckets of type `S3`.",
"9100" = "There was an error communicating with the service.",
"9101" = "The volume is not configured for writing (`access mode` is not set to `RW`).",
"9102" = "Insufficient privileges to access the requested project.",
"9103" = "Location on volume is not accessible as configured.",
"9104" = "Requested volume does not exist.",
"9105" = "Location on volume not found.",
"9106" = "Requested file does not exist.",
"9107" = "Location on volume already contains a file.",
"9108" = "Requested file already exists.",
"9109" = "Requested file does not exist or not accessible.",
# 9xxxx: General validation errors
"90000" = "Bad request.",
"90001" = "Unauthorized.",
"90002" = "Forbidden.",
"90003" = "Not found.",
"90004" = "Unexpected error happened.",
"90005" = "Service unavailable.",
"90006" = "Method not allowed.",
"90007" = "Conflict.",
"90008" = "Unsupported Media Type.",
"90009" = "An error occurred during the decoding of the request content."
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.