{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Errors","description":"Reference, guides and recipes for the Franklin API — create cases, link sample files, retrieve variants and reports."},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"errors","__idx":0},"children":["Errors"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"error-format","__idx":1},"children":["Error format"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Failed requests return a non-2xx status and a JSON body:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"error\": \"Bad Request\",\n  \"message\": \"Sample 'MySample' not found\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}," is the status category. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message"]}," is a human-readable explanation meant to be shown to whoever fixes the input. Don't parse it for program logic: its wording can change between releases."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"status-codes","__idx":2},"children":["Status codes"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Status"},"children":["Status"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Meaning"},"children":["Meaning"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Retry?"},"children":["Retry?"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The request is invalid: a missing field, an unknown panel, a duplicate name, files not found. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["message"]}," says which"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No. Fix the request"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Missing, invalid or expired token"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Log in again, then retry once"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The token is valid, but this user can't access this resource"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["404"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The case, report or variant doesn't exist in your organization"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["429"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Rate limit exceeded"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes, after the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Retry-After"]}," header's number of seconds"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["5xx"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Server error"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes, with exponential backoff"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"partial-success-inside-a-200","__idx":3},"children":["Partial success inside a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Some batch and multi-step endpoints return ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["200"]}," even when part of the work failed, and report the failure in the body. Always check these fields:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Endpoint"},"children":["Endpoint"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Check"},"children":["Check"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/api/openapi/reports/generatereportfromworkbench"},"children":["Generate report from workbench"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Each entry in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["reports"]}," has its own ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/api/openapi/reports/publishreport"},"children":["Publish report"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}," in the response"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/api/openapi/reports/getanalysissignedreportfile"},"children":["Signed report file"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["download_link"]}," is null and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}," explains why"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/api/openapi/analysis-status/getanalysisstatus"},"children":["Analysis status"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["An unknown ID comes back with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status: \"INVALID\""]}," instead of failing the call"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/api/openapi/case-orders/renamecaseorder"},"children":["Rename case order"]},", ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/api/openapi/case-orders/copycaseorderasskeleton"},"children":["Copy as skeleton"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["success"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["error"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"v1-and-v2-endpoints-validate-differently","__idx":4},"children":["v1 and v2 endpoints validate differently"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Where an endpoint has a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v2"]},", prefer it: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v2"]}," validates the whole request up front and says exactly what's wrong. ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/api/openapi/shell-case/createshellcasev2"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v2/shell_case/create"]}]}," checks panel names, the assay, duplicate sample and case names, family relations and the assignee before creating anything. ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/api/openapi/shell-case/linkshellcasev2"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v2/shell_case/link"]}]}," names the exact missing files and the buckets it searched."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["One difference changes behavior, not just the message:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"assigned_to isn't a user in your organization"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["assigned_to"]}," isn't a user in your organization"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Result"},"children":["Result"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v1/shell_case/create"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Silently ignored. The case is created unassigned"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["v2/shell_case/create"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["400 Invalid assignedTo email: …"]},", and no case is created"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Each endpoint's reference page lists its common error messages with examples."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"retry-safely","__idx":5},"children":["Retry safely"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Creating cases isn't idempotent. If a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["create"]}," call times out, the case may still have been created. Look it up by name with ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/api/openapi/analysis-status/getanalysisstatusbyname"},"children":["status by name"]}," before retrying."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"import time\n\ndef call_with_retry(client, method, path, attempts=5, **kwargs):\n    for attempt in range(attempts):\n        r = client.request(method, path, **kwargs)\n        if r.status_code == 429:\n            time.sleep(int(r.headers.get(\"Retry-After\", 60)))\n        elif r.status_code >= 500:\n            time.sleep(2 ** attempt)\n        else:\n            return r\n    return r\n","lang":"python"},"children":[]}]},"headings":[{"value":"Errors","id":"errors","depth":1},{"value":"Error format","id":"error-format","depth":2},{"value":"Status codes","id":"status-codes","depth":2},{"value":"Partial success inside a 200","id":"partial-success-inside-a-200","depth":2},{"value":"v1 and v2 endpoints validate differently","id":"v1-and-v2-endpoints-validate-differently","depth":2},{"value":"Retry safely","id":"retry-safely","depth":2}],"frontmatter":{"seo":{"title":"Errors"}},"lastModified":"2026-09-30T21:14:32.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/guides/errors","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}