Décidez sur code et le statut HTTP, jamais sur message, qui peut changer. Gardez requestId : c’est ce que le support demande pour retrouver un appel.
HTTP
code
Quand
Que faire
400
VALIDATION_ERROR
corps invalide ; details dit quel champ et pourquoi
corriger la requête, ne pas la rejouer telle quelle
401
UNAUTHENTICATED
clé absente, invalide, révoquée ou expirée
vérifier x-api-key
402
INSUFFICIENT_BALANCE
le solde du projet ne couvre pas l’envoi
acheter des unités, puis réessayer
402
ACCOUNT_SUSPENDED
production suspendue pour facture impayée
régler la facture depuis le dashboard
403
ACCOUNT_SUSPENDED
organisation suspendue par la plateforme ou son revendeur
contacter le support
403
FORBIDDEN
portée manquante
ajouter la portée à la clé
404
NOT_FOUND
ressource inexistante, ou d’un autre projet ou environnement
—
409
CONFLICT
Idempotency-Key déjà employée pour une autre demande ; doublon ; ressource plus modifiable
nouvelle clé, ou relire la ressource
422
SENDER_NOT_APPROVED
expéditeur SMS ni de la plateforme, ni approuvé
utiliser DEXCHANGE ou faire valider le nom
422
KYC_REQUIRED
dossier de l’organisation pas encore validé
compléter le dossier dans le dashboard
422
DESTINATION_NOT_ALLOWED
numéro valide, mais pays non ouvert
—
422
NO_RECIPIENTS
envoi sans aucun destinataire joignable
vérifier la cible
422
TOO_MANY_RECIPIENTS
plus de 200 000 destinataires
découper l’envoi
422
CONTENT_BLOCKED
une règle de contenu refuse le texte
revoir le texte
429
RATE_LIMITED
débit dépassé
attendre Retry-After secondes
5xx
INTERNAL_ERROR, …
incident
réessayer avec la mêmeIdempotency-Key
ACCOUNT_SUSPENDED a deux statuts HTTP, et c’est le statut qui dit quoi faire : 402 se lève en payant, 403 non. Ne réessayez ni l’un ni l’autre en boucle.
400 VALIDATION_ERROR, avec dans details le champ (to, ou to.3 pour le quatrième numéro d’une liste) et un code stable : PHONE_EMPTY, PHONE_INVALID_CHARACTERS, PHONE_INVALID_LENGTH, PHONE_INVALID_PREFIX, PHONE_UNKNOWN_COUNTRY. Un texte trop long : CONTENT_TOO_LONG.
Les envois sont asynchrones : l’API répond 202 dès que le message est en file. Un refus de l’opérateur ou du fournisseur arrive plus tard, sur le destinataire (status: failed et son errorCode) et par webhook.
oui, avec repli exponentiel et la même Idempotency-Key
400, 401, 403, 404, 409, 422
non : la même requête aura la même réponse
402
après avoir rechargé le solde ou réglé la facture
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"DexNotify","description":"SMS, e-mail, WhatsApp, notifications push, contacts et campagnes, par une seule API.","colors":{"primary":"#2433d6","light":"#8b9cff","dark":"#1c28b0"},"logo":{"light":"https://mintcdn.com/dexnotify/y_H_sKQd1elmRuNB/logo/light.svg?fit=max\u0026auto=format\u0026n=y_H_sKQd1elmRuNB\u0026q=85\u0026s=f8d308e9bf6471e2c100ac38929fbf5c","dark":"https://mintcdn.com/dexnotify/y_H_sKQd1elmRuNB/logo/dark.svg?fit=max\u0026auto=format\u0026n=y_H_sKQd1elmRuNB\u0026q=85\u0026s=eeec59e59609a8e627a5887b2b1a8888","href":"https://dexnotify.com"},"favicon":"https://mintcdn.com/dexnotify/y_H_sKQd1elmRuNB/favicon.svg?fit=max\u0026auto=format\u0026n=y_H_sKQd1elmRuNB\u0026q=85\u0026s=f746640c933b2ff6e6c75d93a70d80c8","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","javascript","python","php"]}},"appearance":{"default":"light"},"background":{"decoration":"grid"},"navbar":{"links":[{"href":"mailto:team@dexchange.sn","label":"Support"}],"primary":{"type":"button","label":"Ouvrir le dashboard","href":"https://app.dexnotify.com"}},"footer":{"socials":{"website":"https://dexnotify.com"}},"seo":{"indexing":"navigable"},"fonts":{"family":"Inter"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dexnotify","hasAudioNarration":false,"actualSubdomain":"dexnotify","customDomains":["docs.dexnotify.com"],"gitSource":{"type":"github","owner":"dexchange-group","repo":"dexnotify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6ae89ebc885ca613094f745f"},"chroma":{"latestBuiltDeploymentHistoryId":"6ae89f1b885ca613094f80a6","collectionId":"ebee2f47-1bb7-4569-8a22-78fdf1d85d89","liveDeploymentHistoryId":"6ae89f1b885ca613094f80a6","schemaVersion":"v3"},"entitlements":{},"buildId":"6ae8a659885ca61309503fc0","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Référence API","count":181},{"language":"default","tag":"Guides","count":35},{"language":"default","tag":"SMS","count":31},{"language":"default","tag":"Campagnes","count":20},{"language":"default","tag":"Utilisateurs et appareils","count":19},{"language":"default","tag":"Listes de contacts","count":17},{"language":"default","tag":"Contacts","count":15},{"language":"default","tag":"In-app","count":15},{"language":"default","tag":"Notifications push","count":12},{"language":"default","tag":"E-mail","count":10}]},"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":"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":"llms-txt-v2","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":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"erreurs","slug":"/erreurs","pageMetadata":{"title":"Erreurs","description":"Une seule forme d’erreur, des codes stables.","href":"/erreurs"},"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: \"Une seule forme d’erreur, des codes stables.\"\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`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Toutes les erreurs ont la même forme :`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,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:`9`,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:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"INSUFFICIENT_BALANCE\"`}),_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:`\"Solde d’unités SMS insuffisant\"`}),_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:` \"details\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"field\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"units\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},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:`\"120 unités requises, 40 disponibles\"`}),_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:` \"requestId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"6a0f…\"`}),_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:` \"timestamp\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-26T09:12:03.000Z\"`})]}),`\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(_components.p,{children:[`Décidez sur `,_jsx(_components.code,{children:`code`}),` et le statut HTTP, jamais sur `,_jsx(_components.code,{children:`message`}),`, qui peut changer. Gardez `,_jsx(_components.code,{children:`requestId`}),` : c’est ce que le support demande pour retrouver un appel.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.th,{children:`Quand`}),_jsx(_components.th,{children:`Que faire`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`VALIDATION_ERROR`})}),_jsxs(_components.td,{children:[`corps invalide ; `,_jsx(_components.code,{children:`details`}),` dit quel champ et pourquoi`]}),_jsx(_components.td,{children:`corriger la requête, ne pas la rejouer telle quelle`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`UNAUTHENTICATED`})}),_jsx(_components.td,{children:`clé absente, invalide, révoquée ou expirée`}),_jsxs(_components.td,{children:[`vérifier `,_jsx(_components.code,{children:`x-api-key`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`402`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`INSUFFICIENT_BALANCE`})}),_jsx(_components.td,{children:`le solde du projet ne couvre pas l’envoi`}),_jsx(_components.td,{children:`acheter des unités, puis réessayer`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`402`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ACCOUNT_SUSPENDED`})}),_jsx(_components.td,{children:`production suspendue pour facture impayée`}),_jsx(_components.td,{children:`régler la facture depuis le dashboard`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`ACCOUNT_SUSPENDED`})}),_jsx(_components.td,{children:`organisation suspendue par la plateforme ou son revendeur`}),_jsx(_components.td,{children:`contacter le support`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`403`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`FORBIDDEN`})}),_jsx(_components.td,{children:`portée manquante`}),_jsx(_components.td,{children:`ajouter la portée à la clé`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`NOT_FOUND`})}),_jsx(_components.td,{children:`ressource inexistante, ou d’un autre projet ou environnement`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`409`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CONFLICT`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Idempotency-Key`}),` déjà employée pour une autre demande ; doublon ; ressource plus modifiable`]}),_jsx(_components.td,{children:`nouvelle clé, ou relire la ressource`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`SENDER_NOT_APPROVED`})}),_jsx(_components.td,{children:`expéditeur SMS ni de la plateforme, ni approuvé`}),_jsxs(_components.td,{children:[`utiliser `,_jsx(_components.code,{children:`DEXCHANGE`}),` ou faire valider le nom`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`KYC_REQUIRED`})}),_jsx(_components.td,{children:`dossier de l’organisation pas encore validé`}),_jsx(_components.td,{children:`compléter le dossier dans le dashboard`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`DESTINATION_NOT_ALLOWED`})}),_jsx(_components.td,{children:`numéro valide, mais pays non ouvert`}),_jsx(_components.td,{children:`—`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`NO_RECIPIENTS`})}),_jsx(_components.td,{children:`envoi sans aucun destinataire joignable`}),_jsx(_components.td,{children:`vérifier la cible`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`TOO_MANY_RECIPIENTS`})}),_jsx(_components.td,{children:`plus de 200 000 destinataires`}),_jsx(_components.td,{children:`découper l’envoi`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`CONTENT_BLOCKED`})}),_jsx(_components.td,{children:`une règle de contenu refuse le texte`}),_jsx(_components.td,{children:`revoir le texte`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`RATE_LIMITED`})}),_jsx(_components.td,{children:`débit dépassé`}),_jsxs(_components.td,{children:[`attendre `,_jsx(_components.code,{children:`Retry-After`}),` secondes`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`5xx`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`INTERNAL_ERROR`}),`, …`]}),_jsx(_components.td,{children:`incident`}),_jsxs(_components.td,{children:[`réessayer avec la `,_jsx(_components.strong,{children:`même`}),` `,_jsx(_components.code,{children:`Idempotency-Key`})]})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`ACCOUNT_SUSPENDED`}),` a deux statuts HTTP, et c’est le statut qui dit quoi faire : `,_jsx(_components.code,{children:`402`}),` se lève en payant, `,_jsx(_components.code,{children:`403`}),` non. Ne réessayez ni l’un ni l’autre en boucle.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`numéros-refusés`,children:`Numéros refusés`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`400 VALIDATION_ERROR`}),`, avec dans `,_jsx(_components.code,{children:`details`}),` le champ (`,_jsx(_components.code,{children:`to`}),`, ou `,_jsx(_components.code,{children:`to.3`}),` pour le quatrième numéro d’une liste) et un code stable : `,_jsx(_components.code,{children:`PHONE_EMPTY`}),`, `,_jsx(_components.code,{children:`PHONE_INVALID_CHARACTERS`}),`, `,_jsx(_components.code,{children:`PHONE_INVALID_LENGTH`}),`, `,_jsx(_components.code,{children:`PHONE_INVALID_PREFIX`}),`, `,_jsx(_components.code,{children:`PHONE_UNKNOWN_COUNTRY`}),`. Un texte trop long : `,_jsx(_components.code,{children:`CONTENT_TOO_LONG`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`ce-qui-ne-remonte-pas-en-erreur-http`,children:`Ce qui ne remonte pas en erreur HTTP`}),`\n`,_jsxs(_components.p,{children:[`Les envois sont `,_jsx(_components.strong,{children:`asynchrones`}),` : l’API répond `,_jsx(_components.code,{children:`202`}),` dès que le message est en file. Un refus de l’opérateur ou du fournisseur arrive plus tard, sur le destinataire (`,_jsx(_components.code,{children:`status: failed`}),` et son `,_jsx(_components.code,{children:`errorCode`}),`) et par `,_jsx(_components.a,{href:`/webhooks`,children:`webhook`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`réessayer`,children:`Réessayer`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Statut`}),_jsx(_components.th,{children:`Réessayer ?`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`erreur réseau, délai dépassé`}),_jsxs(_components.td,{children:[`oui, avec la même `,_jsx(_components.code,{children:`Idempotency-Key`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsxs(_components.td,{children:[`oui, après `,_jsx(_components.code,{children:`Retry-After`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`5xx`})}),_jsxs(_components.td,{children:[`oui, avec repli exponentiel et la même `,_jsx(_components.code,{children:`Idempotency-Key`})]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{\"data-numeric\":`true`,children:[_jsx(_components.code,{children:`400`}),`, `,_jsx(_components.code,{children:`401`}),`, `,_jsx(_components.code,{children:`403`}),`, `,_jsx(_components.code,{children:`404`}),`, `,_jsx(_components.code,{children:`409`}),`, `,_jsx(_components.code,{children:`422`})]}),_jsx(_components.td,{children:`non : la même requête aura la même réponse`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`402`})}),_jsx(_components.td,{children:`après avoir rechargé le solde ou réglé la facture`})]})]})]})]})}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":"Erreurs","description":"Une seule forme d’erreur, des codes stables.","href":"/erreurs"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Numéros refusés","slug":"numéros-refusés","depth":2,"children":[]},{"title":"Ce qui ne remonte pas en erreur HTTP","slug":"ce-qui-ne-remonte-pas-en-erreur-http","depth":2,"children":[]},{"title":"Réessayer","slug":"réessayer","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"dexnotify","siteName":"DexNotify","title":"Erreurs - DexNotify","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-02T14:33:08.697Z","originalFileLocation":"erreurs.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=\"light\"}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=\"Une seule forme d’erreur, des codes stables.\">\u003cmeta data-mint-head name=\"application-name\" content=\"DexNotify\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dexnotify/waIMEyiVt4giwfRT/_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/dexnotify/waIMEyiVt4giwfRT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dexnotify/waIMEyiVt4giwfRT/_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/dexnotify/waIMEyiVt4giwfRT/_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/dexnotify/waIMEyiVt4giwfRT/_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/dexnotify/waIMEyiVt4giwfRT/_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/dexnotify/waIMEyiVt4giwfRT/_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/dexnotify/waIMEyiVt4giwfRT/_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/dexnotify/waIMEyiVt4giwfRT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Erreurs - DexNotify\">\u003cmeta data-mint-head property=\"og:description\" content=\"Une seule forme d’erreur, des codes stables.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"DexNotify\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dexnotify.com/erreurs\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dexnotify.mintlify.app/_mintlify/api/og/v2?division=D%C3%A9marrer\u0026amp;title=Erreurs\u0026amp;description=Une+seule+forme+d%E2%80%99erreur%2C+des+codes+stables.\u0026amp;theme=547e745f7580d3e888dff798\u0026amp;signature=e75073efc1b212b9d16656bf9f2bebc768aec2b6d896b78320dfba1fff5c9238\">\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=\"Erreurs - DexNotify\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Une seule forme d’erreur, des codes stables.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dexnotify.mintlify.app/_mintlify/api/og/v2?division=D%C3%A9marrer\u0026amp;title=Erreurs\u0026amp;description=Une+seule+forme+d%E2%80%99erreur%2C+des+codes+stables.\u0026amp;theme=547e745f7580d3e888dff798\u0026amp;signature=e75073efc1b212b9d16656bf9f2bebc768aec2b6d896b78320dfba1fff5c9238\">\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/dexnotify/waIMEyiVt4giwfRT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"DexNotify\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2433d6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.dexnotify.com/erreurs\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/erreurs.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.dexnotify.com/#organization\",\"name\":\"DexNotify\",\"url\":\"https://docs.dexnotify.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dexnotify/y_H_sKQd1elmRuNB/logo/light.svg?fit=max\u0026auto=format\u0026n=y_H_sKQd1elmRuNB\u0026q=85\u0026s=f8d308e9bf6471e2c100ac38929fbf5c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.dexnotify.com#website\",\"name\":\"DexNotify\",\"url\":\"https://docs.dexnotify.com\",\"publisher\":{\"@id\":\"https://docs.dexnotify.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.dexnotify.com/erreurs#webpage\",\"url\":\"https://docs.dexnotify.com/erreurs\",\"name\":\"Erreurs\",\"description\":\"Une seule forme d’erreur, des codes stables.\",\"dateModified\":\"2026-11-02T14:33:08.697Z\",\"isPartOf\":{\"@id\":\"https://docs.dexnotify.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dexnotify.com/erreurs#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dexnotify.com/erreurs#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Démarrer\",\"item\":\"https://docs.dexnotify.com/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Erreurs\",\"item\":\"https://docs.dexnotify.com/erreurs\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.dexnotify.com/erreurs#article\",\"headline\":\"Erreurs\",\"name\":\"Erreurs\",\"description\":\"Une seule forme d’erreur, des codes stables.\",\"url\":\"https://docs.dexnotify.com/erreurs\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dexnotify.com/erreurs#webpage\"},\"dateModified\":\"2026-11-02T14:33:08.697Z\",\"publisher\":{\"@id\":\"https://docs.dexnotify.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.dexnotify.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"DexNotify\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"DexNotify","nav":{"global":null,"tabs":[{"tab":"Guides","groups":[{"group":"Démarrer","pages":[{"title":"DexNotify","href":"/introduction"},{"title":"Démarrage rapide","href":"/demarrage-rapide"},{"title":"Authentification","href":"/authentification"},{"title":"Staging et production","description":"Tester tout le parcours sans rien envoyer ni débiter.","href":"/environnements"},{"title":"Erreurs","href":"/erreurs"},{"title":"Idempotence","description":"Réessayer un envoi sans jamais l’envoyer deux fois.","href":"/idempotence"}]},{"group":"SMS","pages":[{"title":"Envoyer un SMS","href":"/sms/envoyer"},{"title":"Envoi groupé","href":"/sms/envoi-groupe"},{"title":"Programmer, modifier, annuler","href":"/sms/programmer"},{"title":"Code de vérification (OTP)","href":"/sms/otp"},{"title":"Statuts et accusés de réception","href":"/sms/statuts"},{"title":"Noms d’expéditeur","href":"/sms/expediteurs"},{"title":"Solde d’unités","href":"/sms/solde"}]},{"group":"E-mail","pages":[{"title":"Domaines d’envoi","href":"/email/domaines"},{"title":"Envoyer un e-mail","href":"/email/envoyer"},{"title":"Suivi et suppressions","href":"/email/evenements"}]},{"group":"Contacts","pages":[{"title":"La base de contacts","href":"/contacts/base"},{"title":"Listes","href":"/contacts/listes"},{"title":"Importer","href":"/contacts/import"}]},{"group":"Campagnes","pages":[{"title":"Campagnes e-mail et SMS","href":"/campagnes/introduction"},{"title":"Personnalisation","href":"/campagnes/personnalisation"},{"title":"Désinscription","href":"/campagnes/desabonnement"},{"title":"Automatisations","href":"/campagnes/automatisations"}]},{"group":"Notifications push","pages":[{"title":"Notifications push","href":"/push/introduction"},{"title":"Envoyer un push","href":"/push/envoyer"},{"title":"Utilisateurs et appareils","href":"/push/utilisateurs"},{"title":"Messages in-app","href":"/push/in-app"},{"title":"Live Activities","href":"/push/live-activities"},{"title":"Événements et conversions","href":"/push/evenements"}]},{"group":"WhatsApp","pages":[{"title":"WhatsApp","href":"/whatsapp"}]},{"group":"Intégrer","pages":[{"title":"Webhooks","href":"/webhooks"},{"title":"SDK React Native","href":"/sdk/react-native"},{"title":"Venir de DEXCHANGE SMS","href":"/migration-dsms"}]},{"group":"Ressources","pages":[{"title":"Limites","href":"/limites"},{"title":"Nouveautés","href":"/changelog"}]}]},{"tab":"Référence API","pages":[{"title":"Référence API","href":"/api-reference/sms/get-balance"}]}]},"basePath":"","title":"Erreurs - DexNotify","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":[],"chunks":[]}