Skip to main content
Content updated: 2026-10-22

HTTP Status Codes

Difference Between 500 and 502

  • 500 is a broader server-side error. In CrazyRouter, it may indicate an internal site error or upstream directly returning 5xx, which is relayed to the client by the site.
  • 502 is more specific, usually indicating that the request has reached CrazyRouter’s gateway or upstream call phase, but CrazyRouter failed to obtain a valid upstream response or result (such as upstream unreachable, invalid gateway-level response returned, or failure to retrieve task result address).
  • If similar issues persist:
    • Lots of 502 usually require checking upstream channel availability, network connectivity, and whether the result URL is accessible first.
    • Many 500 need to be further distinguished based on error type and logs; only those clearly marked as on-site site_internal or panic situations should be directly considered CrazyRouter’s own problem.

Chat Completions Status Codes

Midjourney Task Status Codes

MJ Error Codes

Kling Video Status Codes

Dream Task Status Codes

Luma Video Status Codes

Runway Video Status Codes

General Error Handling Suggestions

When encountering 429 errors, do not retry immediately. It is recommended to use an exponential backoff strategy, starting with a wait of 1 second and doubling each time.