imgbt
API Reference

Error Handling

Error codes and response format for the imgbt API.

Error Handling

All API errors follow a consistent format.

Error Response Format

{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error description",
    "status": 400
  }
}

Error Codes

CodeStatusDescription
INVALID_PARAMS400Request parameters are missing or invalid
UNAUTHORIZED401Authentication required or credentials invalid
FORBIDDEN403Authenticated but insufficient permissions
ASSET_NOT_FOUND404Requested asset does not exist
NOT_FOUND404Requested resource does not exist
CONFLICT409Resource already exists (e.g., duplicate filename at same path)
PAYLOAD_TOO_LARGE413File exceeds maximum upload size (100MB)
RATE_LIMITED429Too many requests — try again later
INTERNAL_ERROR500Unexpected server error

HTTP Status Codes

StatusMeaning
200Success
201Resource created
204Success with no content (e.g., delete)
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
413Payload too large
429Rate limited
500Internal server error

Rate Limiting

  • Magic link requests: 3 per email per 15-minute window
  • API key requests: No rate limiting at the API layer (use vault settings for per-vault limits)