Raised for any non-2xx API response. Subclasses are chosen by status code; a status with no specific subclass raises APIError itself.
str
HTTP <status>: <detail>. Lists of field-level validation errors are joined into one readable line.
int
The HTTP status code.
Any
The parsed response body (a dict for JSON, otherwise the text), or None for an empty body.
str | None
The x-request-id response header, if present.
API error subclasses
Exception
Status
Raised when
AuthenticationError
401
The API key is missing or invalid.
PermissionDeniedError
403
The key is valid but not allowed to do this, for example because of a plan limit. Subclasses AuthenticationError.
NotFoundError
404
The resource doesn’t exist or isn’t in your organization.
ConflictError
409
A write conflicts with current state: a refused publish, or a stale expected_graph_version.
ValidationError
400, 422
The request failed validation. For interview-flow writes, body carries every problem found.
InsufficientCreditsError
402
Your organization lacks the credits for the operation.
RateLimitError
429
You’ve exceeded a rate limit or a usage allowance.
BadGatewayError
502
An upstream service failed.
InternalServerError
other 5xx
A server-side error.
Client-side errors
Exception
Raised when
ConnectionError
A network connection to the API couldn’t be established.
TimeoutError
A request exceeded the client timeout.
WebhookVerificationError
A webhook delivery failed signature or timestamp verification, or isn’t an event. Raised by deutero.webhooks.
ConnectionError and TimeoutError share names with Python built-ins but don’t subclass them. Catch deutero.ConnectionError and deutero.TimeoutError explicitly.
The client constructor raises the built-in ValueError when no API key is provided.
{"docsConfig":{"theme":"linden","$schema":"https://mintlify.com/docs.json","name":"Deutero Python SDK","description":"Official Python SDK for the Deutero Study Management API: design AI-moderated interview studies, recruit participants, rehearse with AI personas and analyze responses.","colors":{"primary":"#2A12E6","light":"#809FFF","dark":"#2A12E6"},"logo":{"light":"https://mintcdn.com/deutero/G_hwo_L4hZsQ93vT/images/deutero-logo-new(1).png?fit=max\u0026auto=format\u0026n=G_hwo_L4hZsQ93vT\u0026q=85\u0026s=c00b6042d4688a9b776bae65a530206a","dark":"https://mintcdn.com/deutero/G_hwo_L4hZsQ93vT/images/deutero-logo-new(1).png?fit=max\u0026auto=format\u0026n=G_hwo_L4hZsQ93vT\u0026q=85\u0026s=c00b6042d4688a9b776bae65a530206a"},"favicon":{"light":"https://mintcdn.com/deutero/G_hwo_L4hZsQ93vT/images/deutero-logo-new(1).png?fit=max\u0026auto=format\u0026n=G_hwo_L4hZsQ93vT\u0026q=85\u0026s=c00b6042d4688a9b776bae65a530206a","dark":"https://mintcdn.com/deutero/G_hwo_L4hZsQ93vT/images/deutero-logo-new(1).png?fit=max\u0026auto=format\u0026n=G_hwo_L4hZsQ93vT\u0026q=85\u0026s=c00b6042d4688a9b776bae65a530206a"},"api":{"openapi":"https://dashboard.deutero.ai/study-api/api/v1/openapi.json"},"background":{"decoration":"gradient","color":{"light":"#f9f8fe","dark":"#0d0e12"}},"navbar":{"links":[{"href":"https://dashboard.deutero.ai","label":"Dashboard"},{"href":"https://deutero.ai","label":"Home"}],"primary":{"type":"github","href":"https://github.com/deutero-ai/deutero-python"}},"footer":{"socials":{"github":"https://github.com/deutero-ai/deutero-python","website":"https://deutero.ai","x":"https://x.com/deuteroai"}},"fonts":{"heading":{"family":"Changa"},"body":{"family":"Victor Mono"}},"icons":{"library":"lucide"},"integrations":{"posthog":{"apiKey":"phc_qda5r4S3eV1sN0kOGvhkMneozBh4rWOUeVRt3m7EDcc","sessionRecording":false}},"contextual":{"options":["copy","chatgpt","claude","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"deutero","hasAudioNarration":false,"actualSubdomain":"deutero","customDomains":["docs.deutero.ai"],"gitSource":{"type":"github","owner":"deutero-ai","repo":"deutero-python","deployBranch":"master","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b1102689ffae5051c41e63f"},"feedback":{"thumbs":true,"issues":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ac5c20854bd690cf49cf692","clientVersion":"0.0.4443","searchFilterCounts":[{"language":"default","tag":"Guides","count":20},{"language":"default","tag":"SDK reference","count":20},{"language":"default","tag":"Study setup","count":7},{"language":"default","tag":"Get started","count":5},{"language":"default","tag":"Results","count":3},{"language":"default","tag":"Utilities","count":3},{"language":"default","tag":"Organization","count":2},{"language":"default","tag":"Recruitment","count":2},{"language":"default","tag":"Simulation","count":2},{"language":"default","tag":"Resources","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":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":"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":"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":"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":"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":"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":"turbopuffer-dual-write","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":"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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"reference/exceptions","slug":"/reference/exceptions","pageMetadata":{"title":"Exceptions","description":"Every exception class the SDK raises, and the HTTP status codes they map to.","icon":"triangle-exclamation","href":"/reference/exceptions"},"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: \"Every exception class the SDK raises, and the HTTP status codes they map to.\"\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={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`All exceptions are importable from `,_jsx(_components.code,{children:`deutero`}),` and from `,_jsx(_components.code,{children:`deutero.exceptions`}),`. For patterns and examples, see `,_jsx(_components.a,{href:`/guides/error-handling`,children:`Error handling`}),`.`]}),`\n`,_jsx(CodeBlock,{numberOfLines:`15`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`15`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`DeuteroError`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── APIError`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ ├── AuthenticationError (401)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ │ └── PermissionDeniedError (403)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ ├── NotFoundError (404)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ ├── ConflictError (409)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ ├── ValidationError (400, 422)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ ├── InsufficientCreditsError (402)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ ├── RateLimitError (429)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ ├── BadGatewayError (502)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ └── InternalServerError (other 5xx)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── ConnectionError`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── TimeoutError`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`└── WebhookVerificationError`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`deuteroerror`,children:`DeuteroError`}),`\n`,_jsx(_components.p,{children:`The base class for every SDK exception.`}),`\n`,_jsx(ResponseField,{name:`message`,type:`str`,id:`param-message`,children:_jsx(_components.p,{children:`A human-readable description.`})}),`\n`,_jsx(Heading,{level:`2`,id:`apierror`,children:`APIError`}),`\n`,_jsxs(_components.p,{children:[`Raised for any non-2xx API response. Subclasses are chosen by status code; a status with no specific subclass raises `,_jsx(_components.code,{children:`APIError`}),` itself.`]}),`\n`,_jsx(ResponseField,{name:`message`,type:`str`,id:`param-message-1`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`HTTP \u003cstatus>: \u003cdetail>`}),`. Lists of field-level validation errors are joined into one readable line.`]})}),`\n`,_jsx(ResponseField,{name:`status_code`,type:`int`,id:`param-status-code`,children:_jsx(_components.p,{children:`The HTTP status code.`})}),`\n`,_jsx(ResponseField,{name:`body`,type:`Any`,id:`param-body`,children:_jsxs(_components.p,{children:[`The parsed response body (a dict for JSON, otherwise the text), or `,_jsx(_components.code,{children:`None`}),` for an empty body.`]})}),`\n`,_jsx(ResponseField,{name:`request_id`,type:`str | None`,id:`param-request-id`,children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`x-request-id`}),` response header, if present.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`api-error-subclasses`,children:`API error subclasses`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Exception`}),_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Raised when`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`AuthenticationError`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:`The API key is missing or invalid.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PermissionDeniedError`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsxs(_components.td,{children:[`The key is valid but not allowed to do this, for example because of a plan limit. Subclasses `,_jsx(_components.code,{children:`AuthenticationError`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`NotFoundError`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`The resource doesn’t exist or isn’t in your organization.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ConflictError`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsxs(_components.td,{children:[`A write conflicts with current state: a refused publish, or a stale `,_jsx(_components.code,{children:`expected_graph_version`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ValidationError`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`400, 422`}),_jsxs(_components.td,{children:[`The request failed validation. For interview-flow writes, `,_jsx(_components.code,{children:`body`}),` carries every problem found.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`InsufficientCreditsError`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`402`}),_jsx(_components.td,{children:`Your organization lacks the credits for the operation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`RateLimitError`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`You’ve exceeded a rate limit or a usage allowance.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`BadGatewayError`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:`502`}),_jsx(_components.td,{children:`An upstream service failed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`InternalServerError`})}),_jsx(_components.td,{children:`other 5xx`}),_jsx(_components.td,{children:`A server-side error.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`client-side-errors`,children:`Client-side errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Exception`}),_jsx(_components.th,{children:`Raised when`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ConnectionError`})}),_jsx(_components.td,{children:`A network connection to the API couldn’t be established.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`TimeoutError`})}),_jsx(_components.td,{children:`A request exceeded the client timeout.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`WebhookVerificationError`})}),_jsxs(_components.td,{children:[`A webhook delivery failed signature or timestamp verification, or isn’t an event. Raised by `,_jsx(_components.a,{href:`/reference/webhook-verification`,children:_jsx(_components.code,{children:`deutero.webhooks`})}),`.`]})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`ConnectionError`}),` and `,_jsx(_components.code,{children:`TimeoutError`}),` share names with Python built-ins but don’t subclass them. Catch `,_jsx(_components.code,{children:`deutero.ConnectionError`}),` and `,_jsx(_components.code,{children:`deutero.TimeoutError`}),` explicitly.`]})}),`\n`,_jsxs(_components.p,{children:[`The client constructor raises the built-in `,_jsx(_components.code,{children:`ValueError`}),` when no API key is provided.`]})]})}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":"Exceptions","description":"Every exception class the SDK raises, and the HTTP status codes they map to.","icon":"triangle-exclamation","href":"/reference/exceptions"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"DeuteroError","slug":"deuteroerror","depth":2,"children":[]},{"title":"APIError","slug":"apierror","depth":2,"children":[]},{"title":"API error subclasses","slug":"api-error-subclasses","depth":2,"children":[]},{"title":"Client-side errors","slug":"client-side-errors","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"deutero","siteName":"Deutero Python SDK","title":"Exceptions - Deutero Python SDK","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-06T03:11:21.062Z","originalFileLocation":"reference/exceptions.mdx"},"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=\"Every exception class the SDK raises, and the HTTP status codes they map to.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Deutero Python SDK\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/deutero/Vn8aLLTKgPILOsVi/_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/deutero/Vn8aLLTKgPILOsVi/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/deutero/Vn8aLLTKgPILOsVi/_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/deutero/Vn8aLLTKgPILOsVi/_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/deutero/Vn8aLLTKgPILOsVi/_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/deutero/Vn8aLLTKgPILOsVi/_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/deutero/Vn8aLLTKgPILOsVi/_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/deutero/Vn8aLLTKgPILOsVi/_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/deutero/Vn8aLLTKgPILOsVi/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Exceptions - Deutero Python SDK\">\u003cmeta data-mint-head property=\"og:description\" content=\"Every exception class the SDK raises, and the HTTP status codes they map to.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Deutero Python SDK\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.deutero.ai/reference/exceptions\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://deutero.mintlify.site/_mintlify/api/og/v2?division=Utilities\u0026amp;title=Exceptions\u0026amp;description=Every+exception+class+the+SDK+raises%2C+and+the+HTTP+status+codes+they+map+to.\u0026amp;theme=db02cb18367b668e487d1a24\u0026amp;signature=92ad92cc1b29816459be9403db290a7b5d96a064f94674a4076f7800c942f772\">\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=\"Exceptions - Deutero Python SDK\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Every exception class the SDK raises, and the HTTP status codes they map to.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://deutero.mintlify.site/_mintlify/api/og/v2?division=Utilities\u0026amp;title=Exceptions\u0026amp;description=Every+exception+class+the+SDK+raises%2C+and+the+HTTP+status+codes+they+map+to.\u0026amp;theme=db02cb18367b668e487d1a24\u0026amp;signature=92ad92cc1b29816459be9403db290a7b5d96a064f94674a4076f7800c942f772\">\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/deutero/Vn8aLLTKgPILOsVi/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Deutero Python SDK\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2A12E6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.deutero.ai/reference/exceptions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/exceptions.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.deutero.ai/#organization\",\"name\":\"Deutero Python SDK\",\"url\":\"https://docs.deutero.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/deutero/G_hwo_L4hZsQ93vT/images/deutero-logo-new(1).png?fit=max\u0026auto=format\u0026n=G_hwo_L4hZsQ93vT\u0026q=85\u0026s=c00b6042d4688a9b776bae65a530206a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.deutero.ai#website\",\"name\":\"Deutero Python SDK\",\"url\":\"https://docs.deutero.ai\",\"publisher\":{\"@id\":\"https://docs.deutero.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.deutero.ai/reference/exceptions#webpage\",\"url\":\"https://docs.deutero.ai/reference/exceptions\",\"name\":\"Exceptions\",\"description\":\"Every exception class the SDK raises, and the HTTP status codes they map to.\",\"dateModified\":\"2026-10-06T03:11:21.062Z\",\"isPartOf\":{\"@id\":\"https://docs.deutero.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.deutero.ai/reference/exceptions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.deutero.ai/reference/exceptions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Utilities\",\"item\":\"https://docs.deutero.ai/reference/webhook-verification\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Exceptions\",\"item\":\"https://docs.deutero.ai/reference/exceptions\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.deutero.ai/reference/exceptions#article\",\"headline\":\"Exceptions\",\"name\":\"Exceptions\",\"description\":\"Every exception class the SDK raises, and the HTTP status codes they map to.\",\"url\":\"https://docs.deutero.ai/reference/exceptions\",\"mainEntityOfPage\":{\"@id\":\"https://docs.deutero.ai/reference/exceptions#webpage\"},\"dateModified\":\"2026-10-06T03:11:21.062Z\",\"publisher\":{\"@id\":\"https://docs.deutero.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.deutero.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Deutero Python SDK\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Deutero Python SDK\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/reference/exceptions.md","siteName":"Deutero Python SDK","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"SDK reference","groups":[{"group":"Client","pages":[{"title":"Deutero and AsyncDeutero","sidebarTitle":"Client","icon":"plug","href":"/reference/client"}]},{"group":"Study setup","pages":[{"title":"client.projects","sidebarTitle":"Projects","icon":"folder","href":"/reference/projects"},{"title":"client.studies","sidebarTitle":"Studies","icon":"flask","href":"/reference/studies"},{"title":"client.welcome","sidebarTitle":"Welcome","icon":"hand-wave","href":"/reference/welcome"},{"title":"client.screening","sidebarTitle":"Screening","icon":"filter","href":"/reference/screening"},{"title":"client.characteristics","sidebarTitle":"Characteristics","icon":"id-card","href":"/reference/characteristics"},{"title":"client.questions","sidebarTitle":"Questions","icon":"list-ol","href":"/reference/questions"},{"title":"client.graph","sidebarTitle":"Interview flow","icon":"diagram-project","href":"/reference/graph"}]},{"group":"Recruitment","pages":[{"title":"client.recruitment","sidebarTitle":"Recruitment","icon":"link","href":"/reference/recruitment"},{"title":"client.embed","sidebarTitle":"Embed","icon":"code","href":"/reference/embed"}]},{"group":"Simulation","pages":[{"title":"client.personas","sidebarTitle":"Personas","icon":"masks-theater","href":"/reference/personas"},{"title":"client.simulations","sidebarTitle":"Simulations","icon":"robot","href":"/reference/simulations"}]},{"group":"Results","pages":[{"title":"client.interviews","sidebarTitle":"Interviews","icon":"comments","href":"/reference/interviews"},{"title":"client.transcripts","sidebarTitle":"Transcripts","icon":"magnifying-glass","href":"/reference/transcripts"},{"title":"client.analysis","sidebarTitle":"Analysis","icon":"chart-pie","href":"/reference/analysis"}]},{"group":"Organization","pages":[{"title":"client.webhooks","sidebarTitle":"Webhooks","icon":"webhook","href":"/reference/webhooks"},{"title":"client.credits","sidebarTitle":"Credits","icon":"coins","href":"/reference/credits"}]},{"group":"Utilities","pages":[{"title":"deutero.webhooks","sidebarTitle":"Webhook verification","icon":"shield-check","href":"/reference/webhook-verification"},{"title":"Models and enums","description":"Typed Pydantic models returned by every SDK call, and the string enums you can pass as arguments.","icon":"cubes","href":"/reference/models"},{"title":"Exceptions","icon":"triangle-exclamation","href":"/reference/exceptions"}]}]}]},"basePath":"","title":"Exceptions - Deutero Python SDK","deploymentId":"dpl_9e4H7L1tnDKAVRTqiF1skrLRiVsQ","buildId":"dpl_9e4H7L1tnDKAVRTqiF1skrLRiVsQ","dynamics":[],"chunks":[]}