Error Codes

Error Codes

This document describes the error codes returned in API responses.

Response Format

When a task fails, the response includes error information:

{
  "id": "prediction-uuid",
  "status": "failed",
  "code": 1401,
  "error": "Error description",
  ...
}
FieldDescription
codeError code. 0 indicates success.
errorError message. Empty on success.

Success

CodeDescription
0Success

Client Errors (1xxx)

CodeNameDescriptionSuggested Action
1200Content ModerationThe content contains sensitive information.Modify the input content and retry.
1400Missing ParameterA required parameter is missing.Check the API documentation for required parameters.
1401Invalid ParameterThe parameter value is invalid.Verify parameter format and value constraints.
1402Media Access FailedUnable to access the provided media URL.Ensure the URL is publicly accessible and valid.
1403Task Execution FailedThe task could not be completed.Check the error message and adjust input parameters.
1405Task FailedThe task execution failed.Check the error message for details.

Server Errors (5xxx)

CodeNameDescriptionSuggested Action
5000Internal ErrorAn internal error occurred.Please try again later.
5003Service UnavailableThe service is temporarily unavailable.Please try again later.
5004TimeoutThe request timed out.Reduce input size or complexity and retry.

Best Practices

  • 1xxx errors: Review and correct your request parameters.
  • 5xxx errors: Retry with exponential backoff.

Example

{
  "id": "abc123",
  "model": "model-name",
  "status": "failed",
  "code": 1402,
  "error": "Failed to download image from the provided URL.",
  "outputs": []
}
© 2025 WaveSpeedAI. All rights reserved.