Skip to main content

🚨 Error Codes

This section provides a comprehensive list of error codes returned by the Scriptix API. Each response includes an HTTP status code and, when applicable, a structured JSON error message to help you understand and debug your requests.


✅ Success Codes

CodeDescription
200OK – Request processed successfully
201Created – Resource successfully created
204No Content – Action succeeded, no body

🔁 Client Error Codes

CodeDescription
400Bad Request – The request is invalid or missing required fields
401Unauthorized – Your API key or token is missing or invalid
403Forbidden – You don't have permission to perform this action
404Not Found – The requested resource could not be found
409Conflict – Resource already exists or conflicts with current state
415Unsupported Media Type – Invalid content type (e.g., not text/plain)
422Unprocessable Entity – Input data failed validation or was malformed
429Too Many Requests – You have exceeded the rate limit for this endpoint

🔧 Server Error Codes

CodeDescription
500Internal Server Error – Something went wrong on our side
503Service Unavailable – Server is temporarily overloaded or down

📦 Example Error Response

{
"error": {
"code": 422,
"message": "Missing required field: language",
"details": {
"field": "language",
"issue": "This field cannot be null."
}
}
}

🧠 Tips for Handling Errors

  • 400–422: Check your request body, headers, and query parameters
  • 401/403: Ensure you are using a valid API key and have the right permissions
  • 429: Implement backoff and retry logic
  • 500+: Wait and retry; contact support if the issue persists