bookmark.land

Error Codes

Complete list of API error codes and their meanings

All errors follow a consistent format:

{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable description"
  },
  "meta": { "requestId": "req_a1b2c3d4e5f6a1b2" }
}

Authentication Errors (401)

CodeDescription
MISSING_TOKENNo Authorization header or missing Bearer prefix
INVALID_TOKENToken doesn't match any active token
TOKEN_REVOKEDToken has been explicitly revoked
TOKEN_EXPIREDToken has passed its expiration date

Authorization Errors (403)

CodeDescription
SCOPE_REQUIREDToken lacks the required scope for this endpoint
FORBIDDENOwnership check failed (trying to access another user's resource)
PRO_REQUIREDFeature requires a Pro plan or higher
BUSINESS_REQUIREDFeature requires a Business plan
API_ACCESS_PRO_REQUIREDAPI access requires a Pro plan or higher
IP_BLOCKEDIP temporarily blocked due to repeated auth failures (edge worker, planned)

Validation Errors (400)

CodeDescription
BAD_REQUESTMalformed request body or missing required fields
VALIDATION_ERRORInput validation failed (invalid URL, name too long, etc.)
INVALID_JSONRequest body is not valid JSON
INVALID_REQUESTRequired fields (method, path) missing from request

Resource Errors (404, 409, 422)

CodeStatusDescription
NOT_FOUND404Resource doesn't exist or invalid ID format
BOOKMARK_LIMIT_REACHED422Plan bookmark limit reached (50,000 for Pro/Business)

Rate Limiting (429)

CodeDescription
RATE_LIMITEDPer-plan or per-endpoint rate limit exceeded

Check X-RateLimit-Reset header for when to retry. See Rate Limits for details.

Server Errors (500)

CodeDescription
INTERNAL_ERRORUnexpected server error

If you consistently receive 500 errors, please contact support.

On this page