API error codes·续2

Public endpoints

These errors can occur when public search, public chat completions, Model Context Protocol (MCP), snippet analytics, assets, or public endpoint routing fails before the request is proxied to AI Search. Public endpoint /search and /chat/completions can also return the AI Search API errors listed above.

Code Message HTTP status Details Recommended action
60001 asset not found 404 The requested UI snippet asset path does not exist, such as an incorrect or outdated asset version. Use the <script> tag from the UI snippet library without changes, and update the asset version if it is outdated.
60002 hash not found on url 404 The public endpoint hash is missing from the URL. Use the public endpoint URL copied from the dashboard.
60003 config not found 404 The public endpoint configuration was not found. Confirm that the public endpoint is enabled.
60004 ai search not enabled 404 The public endpoint is disabled. Enable the public endpoint for the instance.
60005 rate limited 429 The public endpoint rate limit was exceeded. Retry after the rate limit resets.
60006 endpoint not found 404 The requested public endpoint route does not exist. Use a supported public endpoint.
60007 mcp endpoint disabled 401 The MCP endpoint is disabled. Enable MCP for the public endpoint.
60008 search endpoint disabled 401 The search endpoint is disabled. Enable the search endpoint in public endpoint settings.
60009 chat completions endpoint disabled 401 The chat completions endpoint is disabled. Enable the chat completions endpoint in public endpoint settings.
60010 method not allowed 405 The public endpoint snippet analytics /stats endpoint received an unsupported HTTP method. Send snippet analytics requests to /stats with POST.
60011 invalid stats request body 400 The public endpoint snippet analytics /stats request body is invalid. Send a valid JSON body with a non-empty events array.
60012 invalid ai_search_options.instance_ids 400 A namespace public endpoint received a malformed ai_search_options.instance_ids value. Send ai_search_options.instance_ids as a non-empty array of instance names in the request body, or omit it to search the whole allowlist.
60013 ai_search_not_found 404 No searchable instance matched the request. The instance is unknown, outside the allowlist, or the allowlist is empty. Check the instances allowlist for the namespace public endpoint.
60014 path not supported for namespace-kind hash 404 A namespace public endpoint received an unsupported path. Use /search, /chat/completions, or /mcp.
60015 request body must be a JSON object 400 The public endpoint request body is not a JSON object. Send the request body as a JSON object with Content-Type: application/json, not an array, string, or empty body. See public endpoint usage.
60016 method not allowed; this MCP endpoint only accepts POST 405 The MCP endpoint received a non-POST request. Send MCP requests with POST.
60017 asset fetch failed 503 The public endpoint could not fetch a UI snippet asset. Retry the request. Check Cloudflare Status ↗︎ and contact support if the error persists.
60018 default domain disabled 404 The request reached the default hostname while the endpoint serves a custom domain only. Send the request to the custom domain, or re-enable the default hostname.
60019 method not allowed; this endpoint only accepts POST 405 The public /search or /chat/completions endpoint received a non-POST request. Send the request with POST. The response includes Allow: POST.
60100 internal error 500 The public endpoint returned an unexpected error. Retry the request. Check Cloudflare Status ↗︎ and contact support if the error persists.

Troubleshoot API errors

If an API request fails, check the code and message fields in the error response. For Workers binding calls, check the thrown error name and message.

For transient service errors, retry with exponential backoff. If an internal or service error persists, contact Cloudflare support with the error code, instance ID, and request timestamp.

Was this helpful?

YesNo

On this page

API error codes·续2 - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ai-search/troubleshooting/api-error-codes/#page","headline":"API error codes","description":"Troubleshoot API and public endpoint errors.","url":"https://developers.cloudflare.com/ai-search/troubleshooting/api-error-codes/","inLanguage":"en","image":"https://developers.cloudflare.com/ai-search/troubleshooting/api-error-codes/og.png?v=23b29a999fd50392","dateModified":"2026-10-01","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Resolve asynchronous indexing, sync, and crawl error codes. title: Indexing error codes image: https://developers.cloudflare.com/ai-search/troubleshooting/indexing-error-codes/og.png?v=656b5c81e6d85cf6


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/ai-search/llms.txt
Use this file to discover all available pages before exploring further.