FortWatchFortWatchDocs
Menu

Errors

An error answers an HTTP status and a JSON body with a sentence for people and, when there is one, a code for programs:

json
{ "message": "This key does not have the assets:write scope.", "code": "SCOPE_REQUIRED" }

Branch on code (stable), show message (it may change).

StatusCodeMeaning
400(none)A field is missing or has the wrong shape; the message names it
400CREDENTIAL_IN_URLA key or token was sent in the URL; send it in the Authorization header, and revoke it
401INVALID_API_KEYThe key is unknown, revoked or expired, or its creator is no longer an owner or admin
401INVALID_TOKENThe access token is expired or revoked, or the app was disconnected
401API_KEY_HEADERThe key was sent as X-API-Key; use Authorization: Bearer
403SCOPE_REQUIREDThe key or token lacks the scope this needs
403SESSION_REQUIREDThis part of FortWatch is dashboard-only
403LIMIT_REACHEDA plan limit (scans per day, schedules per asset, …)
403PLAN_UPGRADE_REQUIREDThe plan does not include this
403EXTRA_PURCHASE_NOT_ALLOWEDThis needs a paid slot; add it in the dashboard
403OWNERSHIP_NOT_VERIFIEDThe asset's ownership is not proven yet
403WORKSPACE_SUSPENDED, WORKSPACE_NOT_ACTIVE, BILLING_REQUIREDThe workspace can read but not change anything now
403MFA_SETUP_REQUIREDThe workspace requires two-factor authentication and the key's creator has none
404(none)Not found in your workspace
409SCAN_IN_PROGRESSThe asset is already being scanned; the body carries that scan
422VERIFICATION_FAILEDThe ownership proof was not found
429RATE_LIMITEDPast the request budget; wait Retry-After seconds

The OAuth endpoints answer OAuth's own error shape instead: see OAuth apps.