Platform Error Codes

API Error Codes

The API may return the following error codes, which can be used to determine the request's processing result. The error codes are divided into two levels:

Level 1: HTTP Standard Error Codes

Level 2: Custom Error Codes

Below are the various error codes and their detailed descriptions.

400 Bad Request

This error indicates that the request is invalid, usually due to incorrect or malformed request parameters. Please check and correct the request.

This level includes the following sub-error codes:

  • 101 Pydantic Error: Request parameter validation failed.

  • 102 Arguments Required: Missing required request parameters.

  • 103 Invalid Data: Request contains invalid data.

  • 201 Email Already Exists: The email is already registered.

  • 202 OAuth Already Exists: The OAuth has already been authenticated.

  • 501 Error Getting Model: Error retrieving the model.

  • 502 Runtime Error: Runtime error.

  • 599 Inference Error: Inference error.

401 Unauthorized

This error indicates authentication failure. Please check if the API key or user credentials are correct.

This level includes the following sub-error codes:

  • 400 Unauthorized: Unauthorized access.

  • 401 Invalid Credentials: Invalid user credentials.

  • 402 Permission Denied: No permission to perform the operation.

  • 403 Token Expired: Token has expired.

  • 404 Token Revoked: Token has been revoked.

  • 406 User Claims Verification Failed: User credentials verification failed.

  • 407 Invalid Token: Token is invalid.

403 Forbidden

This error indicates that access to the requested resource is forbidden.

This level includes the following sub-error codes:

  • 301 User Not Found: Requested user not found.

  • 302 Subscription Not Found: Related subscription record not found.

  • 303 APIKey Not Found: API Key not found.

  • 304 Model Not Found: Requested model not found.

  • 305 Team Not Found: Team not found.

  • 306 Email Code Not Found: Email verification code not found.

  • 307 Plan Not Found: Subscription plan not found.

  • 308 Team Credit Not Found: Team credits not found.

  • 309 Team Subscription Not Found: Team subscription not found.

  • 310 OAuth Client Not Found: OAuth client not found.

  • 311 Shared Page Not Found: Shared page not found.

  • 312 Comment Not Found: Comment not found.

  • 313 App Not Found: Application not found.

  • 314 Redeem Code Not Found: Redeem code not found.

404 Not Found

This error indicates that the requested resource was not found.

This level includes the following sub-error codes:

  • 301 User Not Found: Requested user not found.

  • 302 Subscription Not Found: Subscription record not found.

  • 303 APIKey Not Found: API Key not found.

  • 304 Model Not Found: Accessed model not found.

  • 305 Team Not Found: Team not found.

  • 306 Email Code Not Found: Email verification code not found.

  • 307 Plan Not Found: Plan not found.

  • 308 Team Credit Not Found: Team credits not found.

  • 309 Team Subscription Not Found: Team subscription not found.

  • 310 OAuth Client Not Found: OAuth client not found.

  • 311 Shared Page Not Found: Shared page not found.

  • 312 Comment Not Found: Comment not found.

  • 313 App Not Found: Application not found.

  • 314 Redeem Code Not Found: Redeem code not found.

429 Too Many Requests

This error indicates that too many requests have been made, reaching the rate limit. Please try again later.

500 Internal Server Error

This error indicates an internal server error. Please try again later.

This level includes the following sub-error codes:

  • 501 Not Implemented: Feature not implemented.

  • 702 Error Sending Email: Error sending email.

  • 703 Stripe Error: Stripe payment-related error.

  • 704 Error Sending SMS: Error sending SMS verification code.

  • 799 Other Error: Other uncategorized errors.

Usage Instructions

Please handle errors based on the error codes returned by the API. For common client errors (e.g., parameter errors or authentication failures), correct the issues according to the error messages and resend the request. For server errors (e.g., internal errors or unimplemented features), please contact technical support at [email protected] for assistance.

Last updated