Check if the token has permission to access the model
404
Resource does not exist
Check the URL path
429
Request frequency exceeded
Lower request frequency or contact administrator
500
Server-side 5xx error
Can retry; may be internal site error or upstream 5xx returned through the site
502
Failed to obtain gateway or upstream result
Usually means upstream call phase has been entered, but failed to obtain valid upstream response or result, can retry
503
Service unavailable
System under maintenance
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.
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.
import timeimport requestsdef request_with_retry(url, headers, json_data, max_retries=3): for i in range(max_retries): response = requests.post(url, headers=headers, json=json_data) if response.status_code == 429: wait = 2 ** i print(f"频率限制,等待 {wait} 秒后重试...") time.sleep(wait) continue return response return response
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Crazyrouter","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"logo":{"light":"https://mintcdn.com/personal-40b49350/FPp111D8La1Ewhd_/logo/wordmark-light.svg?fit=max\u0026auto=format\u0026n=FPp111D8La1Ewhd_\u0026q=85\u0026s=e914a5fb70e6cbaab535757a3c48d69f","dark":"https://mintcdn.com/personal-40b49350/FPp111D8La1Ewhd_/logo/wordmark-dark.svg?fit=max\u0026auto=format\u0026n=FPp111D8La1Ewhd_\u0026q=85\u0026s=09ac97bcd414bcd3a82eb032186bc0f4","href":"https://crazyrouter.com/"},"favicon":"https://mintcdn.com/personal-40b49350/ikfGrKL95lSPfswi/favicon.ico?fit=max\u0026auto=format\u0026n=ikfGrKL95lSPfswi\u0026q=85\u0026s=6971aaf4bd51d87df5db4bb5eff345dd","api":{},"contextual":{"options":["copy"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"cn","href":"llms-guide"},{"language":"en","default":true,"href":"en/llms-guide"},{"language":"jp","href":"jp/llms-guide"},{"language":"ru","href":"ru/llms-guide"},{"language":"ko","href":"ko/llms-guide"},{"language":"es","default":true,"href":"es/llms-guide"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"personal-40b49350","hasAudioNarration":false,"actualSubdomain":"personal-40b49350","customDomains":["docs.crazyrouter.com"],"gitSource":{"type":"github","owner":"xujfcn","repo":"crazyrouter-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6adc791faad54c2adb247fc9","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"cn","tag":"API 参考","count":81},{"language":"en","tag":"API Reference","count":81},{"language":"es","tag":"Referencia de la API","count":81},{"language":"jp","tag":"API リファレンス","count":81},{"language":"ko","tag":"API 레퍼런스","count":81},{"language":"ru","tag":"API Reference","count":81},{"language":"en","tag":"Integrations","count":60},{"language":"es","tag":"Integraciones","count":60},{"language":"ru","tag":"Интеграции","count":60},{"language":"cn","tag":"集成","count":38},{"language":"jp","tag":"連携","count":38},{"language":"ko","tag":"연동","count":38},{"language":"cn","tag":"第三方集成","count":22},{"language":"jp","tag":"外部ツール連携","count":22},{"language":"ko","tag":"서드파티 연동","count":22},{"language":"cn","tag":"视频生成","count":20},{"language":"en","tag":"Video Generation","count":20},{"language":"es","tag":"Generación de vídeo","count":20},{"language":"jp","tag":"動画生成","count":20},{"language":"ko","tag":"비디오 생성","count":20},{"language":"ru","tag":"Генерация видео","count":20},{"language":"cn","tag":"图像生成","count":18},{"language":"en","tag":"Image Generation","count":18},{"language":"es","tag":"Generación de imágenes","count":18},{"language":"jp","tag":"画像生成","count":18},{"language":"ko","tag":"이미지 생성","count":18},{"language":"ru","tag":"Генерация изображений","count":18},{"language":"cn","tag":"文档","count":17},{"language":"en","tag":"Docs","count":17},{"language":"es","tag":"Documentación","count":17},{"language":"jp","tag":"ドキュメント","count":17},{"language":"ko","tag":"문서","count":17},{"language":"ru","tag":"Документация","count":17},{"language":"cn","tag":"开始使用","count":11},{"language":"cn","tag":"Chat - Gemini","count":11},{"language":"cn","tag":"Chat - OpenAI","count":11},{"language":"en","tag":"Getting Started","count":11},{"language":"en","tag":"Chat - Gemini","count":11},{"language":"en","tag":"Chat - OpenAI","count":11},{"language":"es","tag":"Primeros pasos","count":11},{"language":"es","tag":"Chat - Gemini","count":11},{"language":"es","tag":"Chat - OpenAI","count":11},{"language":"jp","tag":"はじめに","count":11},{"language":"jp","tag":"Chat - Gemini","count":11},{"language":"jp","tag":"Chat - OpenAI","count":11},{"language":"ko","tag":"시작하기","count":11},{"language":"ko","tag":"Chat - Gemini","count":11},{"language":"ko","tag":"Chat - OpenAI","count":11},{"language":"ru","tag":"Начало работы","count":11},{"language":"ru","tag":"Chat - Gemini","count":11},{"language":"ru","tag":"Chat - OpenAI","count":11},{"language":"cn","tag":"SDK \u0026 代码示例","count":9},{"language":"en","tag":"SDK \u0026 Code Examples","count":9},{"language":"es","tag":"SDK y ejemplos de código","count":9},{"language":"jp","tag":"SDK \u0026 コード例","count":9},{"language":"ko","tag":"SDK \u0026 코드 예제","count":9},{"language":"ru","tag":"SDK и примеры кода","count":9},{"language":"en","tag":"API Key \u0026 Console Management","count":7},{"language":"es","tag":"Claves API y gestión de la consola","count":7},{"language":"ru","tag":"API-ключи и управление консолью","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"language-flags.css","content":"[data-component-part=\"localization-select-trigger\"][data-docs-flag]::before,:is(#localization-select-item-cn,#localization-select-item-en,#localization-select-item-jp,#localization-select-item-ru,#localization-select-item-ko,#localization-select-item-es)::before{content:\"\";display:inline-block;width:20px;height:20px;flex:0 0 20px;border-radius:50%;background-image:var(--docs-language-flag);background-size:cover;background-position:center;box-shadow:0 0 0 1px rgb(128 128 128 / 20%)}[data-component-part=\"localization-select-trigger\"][data-docs-flag=\"es\"],#localization-select-item-es{--docs-language-flag: linear-gradient(to bottom, #aa151b 0% 25%, #f1bf00 25% 75%, #aa151b 75% 100%)}[data-component-part=\"localization-select-trigger\"][data-docs-flag=\"cn\"],#localization-select-item-cn{--docs-language-flag: url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ijc1LjI0IDAgMzQyIDM0MiI+PHBhdGggZmlsbD0iI0Q4MDAyNyIgZD0iTTAgMGg1MTN2MzQySDB6Ii8+PGcgZmlsbD0iI0ZGREE0NCI+PHBhdGggZD0ibTIyNi44IDIzOS4yLTkuNy0xNS42LTE3LjkgNC40IDExLjktMTQuMS05LjctMTUuNiAxNy4xIDYuOSAxMS44LTE0LjEtMS4zIDE4LjQgMTcuMSA2LjktMTcuOSA0LjR6TTI5MC42IDgybC0xMC4xIDE1LjQgMTEuNiAxNC4zLTE3LjctNC44LTEwLjEgMTUuNS0xLTE4LjQtMTcuNy00LjggMTcuMi02LjYtMS0xOC40IDExLjYgMTQuM3pNMjM2LjIgMjUuNGwtMiAxOC4zIDE2LjggNy42LTE4IDMuOC0yIDE4LjMtOS4yLTE2LTE3LjkgMy44IDEyLjMtMTMuNy05LjItMTUuOSAxNi44IDcuNXpNMjkyLjggMTYxLjhsLTE0LjkgMTAuOSA1LjggMTcuNS0xNC45LTEwLjgtMTQuOSAxMSA1LjYtMTcuNi0xNC45LTEwLjcgMTguNC0uMSA1LjYtMTcuNiA1LjggMTcuNXpNMTE1IDQ2LjNsMTcuMyA1My41aDU2LjJsLTQ1LjQgMzIuOSAxNy4zIDUzLjUtNDUuNC0zMy00NS41IDMzIDE3LjQtNTMuNS00NS41LTMyLjloNTYuM3oiLz48L2c+PC9zdmc+\")}[data-component-part=\"localization-select-trigger\"][data-docs-flag=\"en\"],#localization-select-item-en{--docs-language-flag: url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjU5Ljg1IDAgMzQyIDM0MiI+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTAgMGg1MTN2MzQySDB6Ii8+PGcgZmlsbD0iI0Q4MDAyNyI+PHBhdGggZD0iTTAgMGg1MTN2MjYuM0gwek0wIDUyLjZoNTEzdjI2LjNIMHpNMCAxMDUuMmg1MTN2MjYuM0gwek0wIDE1Ny44aDUxM3YyNi4zSDB6TTAgMjEwLjVoNTEzdjI2LjNIMHpNMCAyNjMuMWg1MTN2MjYuM0gwek0wIDMxNS43aDUxM1YzNDJIMHoiLz48L2c+PHBhdGggZmlsbD0iIzJFNTJCMiIgZD0iTTAgMGgyNTYuNXYxODQuMUgweiIvPjxnIGZpbGw9IiNGRkYiPjxwYXRoIGQ9Im00Ny44IDEzOC45LTQtMTIuOC00LjQgMTIuOEgyNi4ybDEwLjcgNy43LTQgMTIuOCAxMC45LTcuOSAxMC42IDcuOS00LjEtMTIuOCAxMC45LTcuN3pNMTA0LjEgMTM4LjlsLTQuMS0xMi44LTQuMiAxMi44SDgyLjZsMTAuNyA3LjctNCAxMi44IDEwLjctNy45IDEwLjggNy45LTQtMTIuOCAxMC43LTcuN3pNMTYwLjYgMTM4LjlsLTQuMy0xMi44LTQgMTIuOGgtMTMuNWwxMSA3LjctNC4yIDEyLjggMTAuNy03LjkgMTEgNy45LTQuMi0xMi44IDEwLjctNy43ek0yMTYuOCAxMzguOWwtNC0xMi44LTQuMiAxMi44aC0xMy4zbDEwLjggNy43LTQgMTIuOCAxMC43LTcuOSAxMC44IDcuOS00LjMtMTIuOCAxMS03Ljd6TTEwMCA3NS4zbC00LjIgMTIuOEg4Mi42TDkzLjMgOTZsLTQgMTIuNiAxMC43LTcuOCAxMC44IDcuOC00LTEyLjYgMTAuNy03LjloLTEzLjR6TTQzLjggNzUuM2wtNC40IDEyLjhIMjYuMkwzNi45IDk2bC00IDEyLjYgMTAuOS03LjggMTAuNiA3LjhMNTAuMyA5NmwxMC45LTcuOUg0Ny44ek0xNTYuMyA3NS4zbC00IDEyLjhoLTEzLjVsMTEgNy45LTQuMiAxMi42IDEwLjctNy44IDExIDcuOC00LjItMTIuNiAxMC43LTcuOWgtMTMuMnpNMjEyLjggNzUuM2wtNC4yIDEyLjhoLTEzLjNsMTAuOCA3LjktNCAxMi42IDEwLjctNy44IDEwLjggNy44LTQuMy0xMi42IDExLTcuOWgtMTMuNXpNNDMuOCAyNC43bC00LjQgMTIuNkgyNi4ybDEwLjcgNy45LTQgMTIuN0w0My44IDUwbDEwLjYgNy45LTQuMS0xMi43IDEwLjktNy45SDQ3Ljh6TTEwMCAyNC43bC00LjIgMTIuNkg4Mi42bDEwLjcgNy45LTQgMTIuN0wxMDAgNTBsMTAuOCA3LjktNC0xMi43IDEwLjctNy45aC0xMy40ek0xNTYuMyAyNC43bC00IDEyLjZoLTEzLjVsMTEgNy45LTQuMiAxMi43IDEwLjctNy45IDExIDcuOS00LjItMTIuNyAxMC43LTcuOWgtMTMuMnpNMjEyLjggMjQuN2wtNC4yIDEyLjZoLTEzLjNsMTAuOCA3LjktNCAxMi43IDEwLjctNy45IDEwLjggNy45LTQuMy0xMi43IDExLTcuOWgtMTMuNXoiLz48L2c+PC9zdmc+\")}[data-component-part=\"localization-select-trigger\"][data-docs-flag=\"jp\"],#localization-select-item-jp{--docs-language-flag: url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ijg1LjUgMCAzNDIgMzQyIj48cGF0aCBmaWxsPSIjRkZGIiBkPSJNMCAwaDUxMnYzNDJIMHoiLz48Y2lyY2xlIGZpbGw9IiNEODAwMjciIGN4PSIyNTYuNSIgY3k9IjE3MSIgcj0iOTYiLz48L3N2Zz4=\")}[data-component-part=\"localization-select-trigger\"][data-docs-flag=\"ru\"],#localization-select-item-ru{--docs-language-flag: url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ijg1LjMzMyA4NS4zMzMgMzQxLjMzMyAzNDEuMzMzIj48cGF0aCBmaWxsPSIjRkZGIiBkPSJNMCA4NS4zM3YzNDEuMzMyaDUxMlY4NS4zM3oiLz48cGF0aCBmaWxsPSIjMDA1MkI0IiBkPSJNMCA4NS4zMzNoNTEyVjQyNi42N0gweiIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik0wIDg1LjMzM2g1MTJ2MTEzLjc3NUgweiIvPjxwYXRoIGZpbGw9IiNEODAwMjciIGQ9Ik0wIDMxMi44ODRoNTEydjExMy43NzVIMHoiLz48L3N2Zz4=\")}[data-component-part=\"localization-select-trigger\"][data-docs-flag=\"ko\"],#localization-select-item-ko{--docs-language-flag: url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ijg1LjUgMCAzNDIgMzQyIj48cGF0aCBmaWxsPSIjRkZGIiBkPSJNMCAwaDUxM3YzNDJIMHoiLz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNTYuNSAxNzEpIHNjYWxlKDYuNSkiPjxnIHRyYW5zZm9ybT0icm90YXRlKC01Ni4zKSI+PHBhdGggZD0iTS02LTI2SDZ2MkgtNlptMCAzSDZ2MkgtNlptMCAzSDZ2MkgtNlpNLTYgMThINnYySC02Wm0wIDNINnYySC02Wm0wIDNINnYySC02WiIvPjxwYXRoIHN0cm9rZT0iI0ZGRiIgZD0iTTAgMTd2MTAiLz48cGF0aCBmaWxsPSIjQ0QyRTNBIiBkPSJNMC0xMmExMiAxMiAwIDAgMSAwIDI0WiIvPjxwYXRoIGZpbGw9IiMwMDQ3QTAiIGQ9Ik0wLTEyYTEyIDEyIDAgMCAwIDAgMjRBNiA2IDAgMCAwIDAgMFoiLz48Y2lyY2xlIGN5PSItNiIgcj0iNiIgZmlsbD0iI0NEMkUzQSIvPjwvZz48ZyB0cmFuc2Zvcm09InJvdGF0ZSgtMTIzLjcpIj48cGF0aCBkPSJNLTYtMjZINnYySC02Wm0wIDNINnYySC02Wm0wIDNINnYySC02Wk0tNiAxOEg2djJILTZabTAgM0g2djJILTZabTAgM0g2djJILTZaIi8+PHBhdGggc3Ryb2tlPSIjRkZGIiBkPSJNMC0yMy41djNNMCAxN3YzLjVtMCAzdjMiLz48L2c+PC9nPjwvc3ZnPg==\")}"}]}
{"page":{"pagePath":"en/reference/status-codes","slug":"/en/reference/status-codes","pageMetadata":{"title":"Status Codes","description":"Reference for status codes of all API types","href":"/en/reference/status-codes"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Reference for status codes of all API types\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={blockquote:`blockquote`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:`Content updated: 2026-10-22`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`http-status-codes`,children:`HTTP Status Codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status Code`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Handling Suggestion`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`200`}),_jsx(_components.td,{children:`Request successful`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`-`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Request parameter error`}),_jsx(_components.td,{children:`Check request body format and parameters`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`Authentication failed`}),_jsx(_components.td,{children:`Check if the API Key is correct`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:`Insufficient permissions`}),_jsx(_components.td,{children:`Check if the token has permission to access the model`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`Resource does not exist`}),_jsx(_components.td,{children:`Check the URL path`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`Request frequency exceeded`}),_jsx(_components.td,{children:`Lower request frequency or contact administrator`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`Server-side 5xx error`}),_jsx(_components.td,{children:`Can retry; may be internal site error or upstream 5xx returned through the site`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`502`}),_jsx(_components.td,{children:`Failed to obtain gateway or upstream result`}),_jsx(_components.td,{children:`Usually means upstream call phase has been entered, but failed to obtain valid upstream response or result, can retry`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`503`}),_jsx(_components.td,{children:`Service unavailable`}),_jsx(_components.td,{children:`System under maintenance`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`difference-between-500-and-502`,children:`Difference Between 500 and 502`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`500`}),` is a broader server-side error. In CrazyRouter, it may indicate an internal site error or upstream directly returning `,_jsx(_components.code,{children:`5xx`}),`, which is relayed to the client by the site.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`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).`]}),`\n`,_jsxs(_components.li,{children:[`If similar issues persist:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Lots of `,_jsx(_components.code,{children:`502`}),` usually require checking upstream channel availability, network connectivity, and whether the result URL is accessible first.`]}),`\n`,_jsxs(_components.li,{children:[`Many `,_jsx(_components.code,{children:`500`}),` need to be further distinguished based on error type and logs; only those clearly marked as on-site `,_jsx(_components.code,{children:`site_internal`}),` or panic situations should be directly considered CrazyRouter’s own problem.`]}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`chat-completions-status-codes`,children:`Chat Completions Status Codes`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"错误描述\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"error_code\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`code`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_api_key`})}),_jsx(_components.td,{children:`API Key invalid or expired`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`insufficient_quota`})}),_jsx(_components.td,{children:`Insufficient balance`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model_not_found`})}),_jsx(_components.td,{children:`Model does not exist or not enabled`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`context_length_exceeded`})}),_jsx(_components.td,{children:`Input exceeds model’s context length limit`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`rate_limit_exceeded`})}),_jsx(_components.td,{children:`Request frequency exceeded`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`content_filter`})}),_jsx(_components.td,{children:`Content intercepted by safety filter`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`midjourney-task-status-codes`,children:`Midjourney Task Status Codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`NOT_START`})}),_jsx(_components.td,{children:`Task not started`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`SUBMITTED`})}),_jsx(_components.td,{children:`Submitted`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`IN_PROGRESS`})}),_jsx(_components.td,{children:`In Generation`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`SUCCESS`})}),_jsx(_components.td,{children:`Generation successful`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FAILURE`})}),_jsx(_components.td,{children:`Generation failed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`CANCEL`})}),_jsx(_components.td,{children:`Cancelled`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`mj-error-codes`,children:`MJ Error Codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`code`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`1`}),_jsx(_components.td,{children:`Submitted successfully`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`21`}),_jsx(_components.td,{children:`Task already exists`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`22`}),_jsx(_components.td,{children:`Queuing`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`23`}),_jsx(_components.td,{children:`Queue full`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`24`}),_jsx(_components.td,{children:`Submission failed`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`kling-video-status-codes`,children:`Kling Video Status Codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`queued`})}),_jsx(_components.td,{children:`Submitted or queued`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`processing`})}),_jsx(_components.td,{children:`Processing`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`succeeded`})}),_jsx(_components.td,{children:`Generation successful`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failed`})}),_jsx(_components.td,{children:`Generation failed`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`dream-task-status-codes`,children:`Dream Task Status Codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`queued`})}),_jsx(_components.td,{children:`Submitted or queued`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`processing`})}),_jsx(_components.td,{children:`Processing`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`succeeded`})}),_jsx(_components.td,{children:`Generation successful`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failed`})}),_jsx(_components.td,{children:`Generation failed`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`luma-video-status-codes`,children:`Luma Video Status Codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pending`})}),_jsx(_components.td,{children:`Waiting`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`processing`})}),_jsx(_components.td,{children:`Processing`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`completed`})}),_jsx(_components.td,{children:`Completed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failed`})}),_jsx(_components.td,{children:`Failed`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`runway-video-status-codes`,children:`Runway Video Status Codes`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PENDING`})}),_jsx(_components.td,{children:`Waiting`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`RUNNING`})}),_jsx(_components.td,{children:`Generating`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`SUCCEEDED`})}),_jsx(_components.td,{children:`Success`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`FAILED`})}),_jsx(_components.td,{children:`Failure`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`general-error-handling-suggestions`,children:`General Error Handling Suggestions`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`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.`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` time`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` request_with_retry`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`json_data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`max_retries`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` i `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` range`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(max_retries):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(url, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`json_data)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.status_code `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 429`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` wait `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 2`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` **`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` i`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"频率限制,等待 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`wait`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 秒后重试...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` time.sleep(wait)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` continue`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response`})]}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Status Codes","description":"Reference for status codes of all API types","href":"/en/reference/status-codes"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"HTTP Status Codes","slug":"http-status-codes","depth":2,"children":[]},{"title":"Difference Between 500 and 502","slug":"difference-between-500-and-502","depth":2,"children":[]},{"title":"Chat Completions Status Codes","slug":"chat-completions-status-codes","depth":2,"children":[]},{"title":"Midjourney Task Status Codes","slug":"midjourney-task-status-codes","depth":2,"children":[{"title":"MJ Error Codes","slug":"mj-error-codes","depth":3,"children":[]}]},{"title":"Kling Video Status Codes","slug":"kling-video-status-codes","depth":2,"children":[]},{"title":"Dream Task Status Codes","slug":"dream-task-status-codes","depth":2,"children":[]},{"title":"Luma Video Status Codes","slug":"luma-video-status-codes","depth":2,"children":[]},{"title":"Runway Video Status Codes","slug":"runway-video-status-codes","depth":2,"children":[]},{"title":"General Error Handling Suggestions","slug":"general-error-handling-suggestions","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/personal-40b49350/8c6f32f75f309c4e/language-flags.js"],"subdomain":"personal-40b49350","siteName":"Crazyrouter","title":"Status Codes - Crazyrouter","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"cn":{"href":"/reference/status-codes","matchLevel":1},"en":{"href":"/en/reference/status-codes","matchLevel":0},"jp":{"href":"/jp/reference/status-codes","matchLevel":1},"ru":{"href":"/ru/reference/status-codes","matchLevel":1},"ko":{"href":"/ko/reference/status-codes","matchLevel":1},"es":{"href":"/es/reference/status-codes","matchLevel":1}}},"lastModified":"2026-10-24T09:25:06.438Z","originalFileLocation":"en/reference/status-codes.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Reference for status codes of all API types\">\u003cmeta data-mint-head name=\"application-name\" content=\"Crazyrouter\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/personal-40b49350/NVVHVTlgfxl0NPnu/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/personal-40b49350/NVVHVTlgfxl0NPnu/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/personal-40b49350/NVVHVTlgfxl0NPnu/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/personal-40b49350/NVVHVTlgfxl0NPnu/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/personal-40b49350/NVVHVTlgfxl0NPnu/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/personal-40b49350/NVVHVTlgfxl0NPnu/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/personal-40b49350/NVVHVTlgfxl0NPnu/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/personal-40b49350/NVVHVTlgfxl0NPnu/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/personal-40b49350/NVVHVTlgfxl0NPnu/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Status Codes - Crazyrouter\">\u003cmeta data-mint-head property=\"og:description\" content=\"Reference for status codes of all API types\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Crazyrouter\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.crazyrouter.com/en/reference/status-codes\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://personal-40b49350.mintlify.site/_mintlify/api/og/v2?division=Reference\u0026amp;title=Status+Codes\u0026amp;description=Reference+for+status+codes+of+all+API+types\u0026amp;theme=c9c1e6e36dfdc1d29aab4aed\u0026amp;signature=7f3119cb5953239f77444b5a25bdb45cf2541ae0dd053d28cef89273b6d39b56\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Status Codes - Crazyrouter\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Reference for status codes of all API types\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://personal-40b49350.mintlify.site/_mintlify/api/og/v2?division=Reference\u0026amp;title=Status+Codes\u0026amp;description=Reference+for+status+codes+of+all+API+types\u0026amp;theme=c9c1e6e36dfdc1d29aab4aed\u0026amp;signature=7f3119cb5953239f77444b5a25bdb45cf2541ae0dd053d28cef89273b6d39b56\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/personal-40b49350/NVVHVTlgfxl0NPnu/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Crazyrouter\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.crazyrouter.com/en/reference/status-codes\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/reference/status-codes.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.crazyrouter.com/en/reference/status-codes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.crazyrouter.com/reference/status-codes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.crazyrouter.com/jp/reference/status-codes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ru\" href=\"https://docs.crazyrouter.com/ru/reference/status-codes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.crazyrouter.com/ko/reference/status-codes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.crazyrouter.com/es/reference/status-codes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.crazyrouter.com/en/reference/status-codes\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.crazyrouter.com/#organization\",\"name\":\"Crazyrouter\",\"url\":\"https://docs.crazyrouter.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/personal-40b49350/FPp111D8La1Ewhd_/logo/wordmark-light.svg?fit=max\u0026auto=format\u0026n=FPp111D8La1Ewhd_\u0026q=85\u0026s=e914a5fb70e6cbaab535757a3c48d69f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.crazyrouter.com#website\",\"name\":\"Crazyrouter\",\"url\":\"https://docs.crazyrouter.com\",\"publisher\":{\"@id\":\"https://docs.crazyrouter.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.crazyrouter.com/en/reference/status-codes#webpage\",\"url\":\"https://docs.crazyrouter.com/en/reference/status-codes\",\"name\":\"Status Codes\",\"description\":\"Reference for status codes of all API types\",\"dateModified\":\"2026-10-24T09:25:06.438Z\",\"isPartOf\":{\"@id\":\"https://docs.crazyrouter.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.crazyrouter.com/en/reference/status-codes#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.crazyrouter.com/en/reference/status-codes#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Crazyrouter\",\"item\":\"https://docs.crazyrouter.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Status Codes\",\"item\":\"https://docs.crazyrouter.com/en/reference/status-codes\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.crazyrouter.com/en/reference/status-codes#article\",\"headline\":\"Status Codes\",\"name\":\"Status Codes\",\"description\":\"Reference for status codes of all API types\",\"url\":\"https://docs.crazyrouter.com/en/reference/status-codes\",\"mainEntityOfPage\":{\"@id\":\"https://docs.crazyrouter.com/en/reference/status-codes#webpage\"},\"dateModified\":\"2026-10-24T09:25:06.438Z\",\"publisher\":{\"@id\":\"https://docs.crazyrouter.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.crazyrouter.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Crazyrouter\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Crazyrouter\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/reference/status-codes.md","siteName":"Crazyrouter","nav":{"global":null,"languages":[{"language":"cn","pages":[{"title":"cn","href":"/reference/status-codes"}]},{"language":"en","default":true,"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":"/en/llms-guide"}]},{"tab":"API Reference","groups":[{"group":"Chat - OpenAI","pages":[{"title":"Chat Completion Object","href":"/en/chat/openai/overview"},{"title":"Create Chat Completion","href":"/en/chat/openai/completions"},{"title":"Vision via Chat","href":"/en/chat/openai/vision"},{"title":"Chat Image Generation","href":"/en/chat/openai/image-creation"},{"title":"Function Calling","href":"/en/chat/openai/function-calling"},{"title":"Structured Outputs","href":"/en/chat/openai/structured-output"},{"title":"Reasoning Models","href":"/en/chat/openai/reasoning"},{"title":"Web Search","href":"/en/chat/openai/web-search"},{"title":"Grok Models","href":"/en/chat/openai/grok"},{"title":"Create Completion (Legacy)","href":"/en/chat/openai/completions-legacy"},{"title":"List Models","href":"/en/chat/openai/models"}]},{"group":"Chat - Claude","pages":[{"title":"Claude Chat Object","href":"/en/chat/anthropic/overview"},{"title":"Claude Native Format","href":"/en/chat/anthropic/messages"},{"title":"Claude Token Counting","href":"/en/chat/anthropic/count-tokens"},{"title":"Claude OpenAI Compatible Format","href":"/en/chat/anthropic/completions"},{"title":"Claude Vision","href":"/en/chat/anthropic/vision"},{"title":"Claude PDF Support","href":"/en/chat/anthropic/pdf"}]},{"group":"Chat - Gemini","pages":[{"title":"Gemini Native Format","href":"/en/chat/gemini/native"},{"title":"Gemini Image Generation","href":"/en/chat/gemini/image-gen"},{"title":"Gemini Image Editing","href":"/en/chat/gemini/image-edit"},{"title":"Gemini Image Understanding","href":"/en/chat/gemini/vision"},{"title":"Gemini Video Understanding","href":"/en/chat/gemini/video"},{"title":"Gemini Audio Understanding","href":"/en/chat/gemini/audio"},{"title":"Gemini Document Understanding","href":"/en/chat/gemini/document"},{"title":"Gemini Tools","href":"/en/chat/gemini/tools"},{"title":"Gemini OpenAI compatible format","href":"/en/chat/gemini/openai-compat"},{"title":"Gemini-Compatible OpenAI Model List","href":"/en/chat/gemini/openai-models"},{"title":"Imagen 4","href":"/en/chat/gemini/imagen"}]},{"group":"Chat - Responses API","pages":[{"title":"Responses API Overview","href":"/en/chat/responses/overview"},{"title":"Create Response","href":"/en/chat/responses/create"},{"title":"Responses Web Search","href":"/en/chat/responses/web-search"},{"title":"Responses Function Calling","href":"/en/chat/responses/function-calling"},{"title":"GPT-5 Thinking Mode","href":"/en/chat/responses/gpt5-thinking"}]},{"group":"Image Generation","pages":[{"title":"Asynchronous Image Generation","href":"/en/images/async"},{"title":"Midjourney Overview","href":"/en/images/midjourney/overview"},{"title":"Submit Imagine Task","href":"/en/images/midjourney/imagine"},{"title":"Query Task Status","href":"/en/images/midjourney/query"},{"title":"Execute Actions","href":"/en/images/midjourney/action"},{"title":"Get Seed","href":"/en/images/midjourney/seed"},{"title":"Ideogram V3","href":"/en/images/ideogram/v3"},{"title":"Ideogram Legacy","href":"/en/images/ideogram/legacy"},{"title":"GPT Image","href":"/en/images/gpt-image"},{"title":"Grok Image Models","href":"/en/images/grok"},{"title":"Nano Banana","href":"/en/images/nano-banana"},{"title":"Nano Banana Pro","href":"/en/images/nano-banana-pro"},{"title":"Nano Banana 2","href":"/en/images/nano-banana-2"},{"title":"DALL-E legacy API reference","href":"/en/images/dalle"},{"title":"Doubao Seedream","href":"/en/images/doubao"},{"title":"AIGC Kling 3.0 Image Generation","href":"/en/images/aigc-kling"},{"title":"Fal.ai Images","href":"/en/images/fal"},{"title":"Qwen Image","href":"/en/images/qwen"}]},{"group":"Video Generation","pages":[{"title":"Unified Video API","href":"/en/video/unified"},{"title":"AIGC Kling VOD Usage Method","href":"/en/video/aigc-kling"},{"title":"AIGC GV VOD Usage Guide","href":"/en/video/aigc-gv"},{"title":"Kling Image Generation","href":"/en/video/kling/images"},{"title":"Kling Video Generation","href":"/en/video/kling/video"},{"title":"Kling Advanced Features","href":"/en/video/kling/advanced"},{"title":"Kling Task Query","href":"/en/video/kling/query"},{"title":"Luma","href":"/en/video/luma"},{"title":"Runway","href":"/en/video/runway"},{"title":"Veo 3.1","href":"/en/video/veo"},{"title":"MiniMax Video","href":"/en/video/minimax"},{"title":"Jimeng","href":"/en/video/jimeng"},{"title":"Wan Video","href":"/en/video/wan"},{"title":"Seedance","href":"/en/video/seedance"},{"title":"Seedance 2.0 Billing Instructions","href":"/en/video/seedance-2-billing"},{"title":"Volcengine","href":"/en/video/volcengine"},{"title":"Ali Bailian Video API","href":"/en/video/alibailian"},{"title":"Video Generation Alias","href":"/en/video/openai-video-alias-create"},{"title":"Video Task Query Alias","href":"/en/video/openai-video-alias-query"},{"title":"OpenAI Video Format","href":"/en/video/openai-video"}]},{"group":"Audio","pages":[{"title":"Text-to-Speech (TTS)","href":"/en/audio/tts"},{"title":"Speech-to-Text (STT)","href":"/en/audio/stt"}]},{"group":"Embeddings \u0026 Rerank","pages":[{"title":"Create Embeddings","api":"POST /v1/embeddings","href":"/en/embeddings/create"},{"title":"Rerank","api":"POST /v1/rerank","href":"/en/embeddings/rerank"}]},{"group":"Other APIs","pages":[{"title":"GPTs Conversations","href":"/en/gpts"},{"title":"Image Upload Instructions","description":"Upload a local image and get a temporary public URL valid for 48 hours, used for image-to-image, image-to-video, and image recognition interfaces.","href":"/en/upload"}]},{"group":"Reference","pages":[{"title":"Status Codes","href":"/en/reference/status-codes"},{"title":"Callback Protocol","description":"Webhook callback protocol for async tasks","href":"/en/reference/callback"},{"title":"AI Thinking Fields","href":"/en/reference/thinking"},{"title":"Access Tutorial","href":"/en/reference/tutorial"}]}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/en/token-management/list"}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/en/sdks/crazyrouter-sdk-guide"}]}],"global":{"anchors":[{"anchor":"Model Prices","icon":"coins","href":"https://crazyrouter.com/en/pricing?utm_source=docs\u0026utm_medium=anchor"}]}},{"language":"jp","pages":[{"title":"jp","href":"/jp/reference/status-codes"}]},{"language":"ru","pages":[{"title":"ru","href":"/ru/reference/status-codes"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/reference/status-codes"}]},{"language":"es","default":true,"pages":[{"title":"es","href":"/es/reference/status-codes"}]}]},"basePath":"","title":"Status Codes - Crazyrouter","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}