API Reference
Back to site
Getting started

Errors & status codes

18. Error Handling

Error Response Format

json
{
  "status": "error",
  "message": "Error message describing what went wrong"
}

HTTP Status Codes

CodeMeaning
200Success
201Created
202Accepted (async processing)
207Multi-Status (batch operations)
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing API key
403Forbidden - API disabled or insufficient permissions
404Not Found - Resource not found
429Too Many Requests - Rate limit exceeded
500Internal Server Error

Common Errors

ErrorCauseSolution
API key requiredNo auth headerAdd HTTP Basic Auth or X-API-Key
Invalid consumer keyWrong consumer keyCheck API key credentials
Invalid consumer secretWrong consumer secretRegenerate secret in admin
API key expiredKey past its expiryCreate new API key
REST API is disabledAPI not enabledEnable in Settings -> Addons

Troubleshooting

401 Unauthorized

  • Check that consumer key and secret are correct
  • Verify credentials are being sent in the Authorization header
  • Ensure API key hasn't expired
  • Check API key permissions

403 Forbidden

  • Verify API key has required permissions (Read/Write)
  • Check that the endpoint supports your permission level

404 Not Found

  • Verify the endpoint URL is correct
  • Check that the resource ID exists
  • Ensure you're using the correct API version (/api/v1)

400 Bad Request

  • Validate request body format (must be valid JSON)
  • Check required fields are present
  • Verify field types match expected format