Every send-time and delivery-time error code, retryability, and specific remediation steps for each failure type.
When a message can’t be sent or delivered, the API returns a structured error object. Here’s what each error means and what to do about it.
Error structure
All errors follow the same shape:
{ "error": { "type": "opted_out", "message": "This contact has opted out of messages." }}
Some errors include a detail object with field-level information:
{ "error": { "type": "validation_error", "message": "Could not perform the request with the provided parameters.", "detail": { "body": ["can't be blank"] } }}
Errors at send time
These errors come back synchronously when you call POST /accounts/{account_id}/messages.
opted_out (422)
The recipient has previously replied STOP. Carriers require you to honor opt-outs. Do not attempt to send to this contact until they explicitly re-opt-in by texting START.Fix: Check contact opt-out state before sending. Subscribe to contact.opted_out webhook events to update your database in real time.
demo_message_limit (403)
You’ve sent 25 messages from the demo number. The demo is for exploration and it’s not for production use.The 25-message cap is a property of the demo number itself. Changing your plan does not raise it. To send more, you need a real phone number attached to an active campaign.Fix:Register your business and purchase a phone number. If you already purchased a number and still hit this error, you’re likely still sending from the demo number. Pass the purchased number’s ID as from (or set it as the account’s default), and confirm it has a non-null campaign_id — see Attaching a Number to a Campaign.
link_size_limit (422)
A link included in the message body is over 1000 bytes long. This is too long for our shortener to handle, and likely to be broken in the message.Fix: Remove unnecessary parameters from the link, or try shortening it before sending.
no_phone_number (422)
No from number was specified and the account has no default phone number configured.Fix: Either set a default phone number on the account in the dashboard, or always pass a from value.
phone_number_not_found (422)
The phone number ID passed as from doesn’t exist or doesn’t belong to this account.Fix: Confirm the phone number ID is correct and belongs to the account you’re sending from.
Errors at delivery (via webhooks)
These appear in message.failed webhook events after a message was initially accepted. The failure_reason field on the event contains the slug.
unreachable_destination
The recipient’s number is disconnected, out of service, or unreachable on the carrier network.What to do: Try again later in case the recipient’s phone was turned off or outside of the carrier’s service area. If continued attempts fail to be delivered, consider removing them from your list, as it may be a permanent disconnection.
Permanent undeliverability. When Surge receives invalid_mobile_number or unreachable_carrier for a number, that number is permanently flagged as undeliverable in Surge’s carrier database. All future sends to it (from any account) are cancelled immediately without hitting the carrier. If a number becomes reachable again (e.g., the subscriber reactivates their SIM), the flag clears when a successful delivery is recorded. Stop sending to failed numbers — it has no effect, and your campaign volume quota is still consumed. Contact support if you’d like to opt out of this behavior.
invalid_content_type
An MMS attachment’s content type isn’t supported by the recipient’s carrier or handset.What to do: Retry with a different format (prefer image/jpeg or image/png) or send the content as a link instead of an attachment.
message_filtered
The carrier’s spam filter blocked the message. This can happen when message content matches spam patterns, and is most typically seen when links included in the message have been flagged by the carrier as potentially spam.What to do:
Check that message content matches your registered campaign description and sample messages
Make sure message content doesn’t use any wording that could suggest a relationship to forbidden messaging categories including alcohol, gambling, drugs, cryptocurrency, etc.
Avoid link shorteners that aren’t trusted by carriers. If possible use a link domain that is specific to the brand sending the messages.
Complete failure reason reference
All possible values for failure_reason in message.failed events:
Reason
Meaning
Retryable?
account_archived
The sending account has been archived
No
account_locked
The platform has been locked due to a policy violation
No. Contact support
attachment_retrieval_error
Surge couldn’t fetch the attachment URL when building the MMS
Yes. Fix the URL or hosting
blocked
The number has been explicitly blocked at the carrier level
No
carrier_error
A transient error from the carrier network
Yes. Surge retries automatically
configuration_error
The account’s carrier credentials are misconfigured
No. Contact support
daily_message_cap_reached
The campaign’s daily T-Mobile volume cap was hit
Yes. Automatically next day
geo_not_enabled
The destination country isn’t in the platform’s allowed regions
No. Contact support to enable the region
invalid_attachment_url
The attachment URL is malformed or not publicly accessible
Yes. Fix the URL
invalid_content_type
MMS attachment type unsupported by the recipient’s carrier
Yes. Use a supported format
invalid_mobile_number
The number is not a valid mobile number (e.g., a landline)
No. Permanently undeliverable
matching_sender_and_receiver
The from and to numbers are the same
No. Sending to yourself isn’t supported
message_filtered
Blocked by carrier spam filters or Surge’s content policy
Investigate content before retrying
message_too_big
The message body exceeds the 1,600-character limit
Yes. Shorten the message
mms_not_supported
The recipient’s carrier or handset doesn’t support MMS
Yes. Surge falls back to SMS automatically
opted_out
The contact has opted out of this conversation
No. Wait for explicit opt-in
premium_rate_number
The destination is a premium-rate number
No
suspected_fraud
Surge’s fraud detection flagged the send
No. Contact support
unknown_destination
The number doesn’t exist on any carrier network
No. Permanently undeliverable
unknown_error
An error occurred that Surge couldn’t categorize
Investigate with support
unreachable_carrier
The destination carrier network is unreachable
No. Permanently undeliverable
unreachable_destination
The number is disconnected or out of service
No
unregistered_number
The sending number isn’t registered with the carrier for this message type
No. Contact support
unsupported_route
No valid carrier route exists for this number pair
No. Contact support
Validation errors
validation_error (422)
A request field is missing or invalid. The detail map contains per-field errors.
{ "error": { "type": "validation_error", "message": "Could not perform the request with the provided parameters.", "detail": { "to": ["is not a valid E.164 phone number"], "body": ["can't be blank"] } }}
Fix: Correct the flagged fields. Phone numbers must include the country code with a + prefix (e.g. +18015551234, not 8015551234).
Full error reference
See the Error Reference for the complete list of error types, HTTP status codes, and additional context.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Surge","colors":{"primary":"#8200ff","light":"#a684ff","dark":"#7f22fe"},"logo":{"light":"https://mintcdn.com/surge-67d47b03/1YdD2Aq20HHnJtCK/logo.svg?fit=max\u0026auto=format\u0026n=1YdD2Aq20HHnJtCK\u0026q=85\u0026s=fb53e91d462980a01e9b7c046c98f339","dark":"https://mintcdn.com/surge-67d47b03/1YdD2Aq20HHnJtCK/logo.svg?fit=max\u0026auto=format\u0026n=1YdD2Aq20HHnJtCK\u0026q=85\u0026s=fb53e91d462980a01e9b7c046c98f339"},"favicon":"https://mintcdn.com/surge-67d47b03/TCCrlfgdQylYa0Zn/favicon.png?fit=max\u0026auto=format\u0026n=TCCrlfgdQylYa0Zn\u0026q=85\u0026s=9026e6be7d30dc29237a92585de3ae74","api":{"openapi":"openapi.documented.json"},"navbar":{"links":[{"href":"mailto:support@surge.app","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://hq.surge.app"}},"footer":{"socials":{"x":"https://x.com/surgeapi","github":"https://github.com/surgeapi","linkedin":"https://www.linkedin.com/company/surgeapi"}},"seo":{"metatags":{"og:image":"https://surgemsg.com/images/surge-preview-9b01c93f5b24bb5128b47c354c371546.jpg?vsn=d"},"indexing":"navigable"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"surge-67d47b03","hasAudioNarration":false,"actualSubdomain":"surge-67d47b03","customDomains":["docs.surge.app"],"gitSource":{"type":"github","owner":"surgeapi","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afce457b74e9cc4f2fc86cd","clientVersion":"0.0.4177","searchFilterCounts":[{"language":"default","tag":"API Reference","count":64},{"language":"default","tag":"Endpoints","count":45},{"language":"default","tag":"Documentation","count":38},{"language":"default","tag":"Webhooks","count":16},{"language":"default","tag":"Events","count":14},{"language":"default","tag":"Phone numbers","count":10},{"language":"default","tag":"SDKs","count":10},{"language":"default","tag":"Register your business","count":9},{"language":"default","tag":"Accounts","count":6},{"language":"default","tag":"Users","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"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":"style.css","content":".nav-logo{height:2rem}"}],"page":{"pagePath":"sending/handle-failures","slug":"/sending/handle-failures","pageMetadata":{"title":"Handle Failures","description":"Every send-time and delivery-time error code, retryability, and specific remediation steps for each failure type.","href":"/sending/handle-failures"},"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 send-time and delivery-time error code, retryability, and specific remediation steps for each failure type.\"\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`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._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:[_jsx(_components.p,{children:`When a message can’t be sent or delivered, the API returns a structured error object. Here’s what each error means and what to do about it.`}),`\n`,_jsx(Heading,{level:`2`,id:`error-structure`,children:`Error structure`}),`\n`,_jsx(_components.p,{children:`All errors follow the same shape:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"opted_out\"`}),_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:`\"This contact has opted out of messages.\"`})]}),`\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:[`Some errors include a `,_jsx(_components.code,{children:`detail`}),` object with field-level information:`]}),`\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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"validation_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:`\"Could not perform the request with the provided parameters.\"`}),_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:` \"detail\"`}),_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:` \"body\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"can't be blank\"`}),_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`,_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`,_jsx(Heading,{level:`2`,id:`errors-at-send-time`,children:`Errors at send time`}),`\n`,_jsxs(_components.p,{children:[`These errors come back synchronously when you call `,_jsx(_components.code,{children:`POST /accounts/{account_id}/messages`}),`.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`opted_out-422`,children:[_jsx(_components.code,{children:`opted_out`}),` (422)`]}),`\n`,_jsx(_components.p,{children:`The recipient has previously replied STOP. Carriers require you to honor opt-outs. Do not attempt to send to this contact until they explicitly re-opt-in by texting START.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix:`}),` Check contact opt-out state before sending. Subscribe to `,_jsx(_components.code,{children:`contact.opted_out`}),` webhook events to update your database in real time.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`demo_message_limit-403`,children:[_jsx(_components.code,{children:`demo_message_limit`}),` (403)`]}),`\n`,_jsx(_components.p,{children:`You’ve sent 25 messages from the demo number. The demo is for exploration and it’s not for production use.`}),`\n`,_jsx(_components.p,{children:`The 25-message cap is a property of the demo number itself. Changing your plan does not raise it. To send more, you need a real phone number attached to an active campaign.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix:`}),` `,_jsx(_components.a,{href:`/registration/index`,children:`Register your business`}),` and `,_jsx(_components.a,{href:`/phone-numbers/purchasing`,children:`purchase a phone number`}),`. If you already purchased a number and still hit this error, you’re likely still sending from the demo number. Pass the purchased number’s ID as `,_jsx(_components.code,{children:`from`}),` (or set it as the account’s default), and confirm it has a non-null `,_jsx(_components.code,{children:`campaign_id`}),` — see `,_jsx(_components.a,{href:`/phone-numbers/attaching`,children:`Attaching a Number to a Campaign`}),`.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`link_size_limit-422`,children:[_jsx(_components.code,{children:`link_size_limit`}),` (422)`]}),`\n`,_jsx(_components.p,{children:`A link included in the message body is over 1000 bytes long. This is too long for our shortener to handle, and likely to be broken in the message.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix:`}),` Remove unnecessary parameters from the link, or try shortening it before sending.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`no_phone_number-422`,children:[_jsx(_components.code,{children:`no_phone_number`}),` (422)`]}),`\n`,_jsxs(_components.p,{children:[`No `,_jsx(_components.code,{children:`from`}),` number was specified and the account has no default phone number configured.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix:`}),` Either set a default phone number on the account in the dashboard, or always pass a `,_jsx(_components.code,{children:`from`}),` value.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`phone_number_not_found-422`,children:[_jsx(_components.code,{children:`phone_number_not_found`}),` (422)`]}),`\n`,_jsxs(_components.p,{children:[`The phone number ID passed as `,_jsx(_components.code,{children:`from`}),` doesn’t exist or doesn’t belong to this account.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fix:`}),` Confirm the phone number ID is correct and belongs to the account you’re sending from.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors-at-delivery-via-webhooks`,children:`Errors at delivery (via webhooks)`}),`\n`,_jsxs(_components.p,{children:[`These appear in `,_jsx(_components.code,{children:`message.failed`}),` webhook events after a message was initially accepted. The `,_jsx(_components.code,{children:`failure_reason`}),` field on the event contains the slug.`]}),`\n`,_jsx(Heading,{level:`3`,id:`unreachable_destination`,children:_jsx(_components.code,{children:`unreachable_destination`})}),`\n`,_jsx(_components.p,{children:`The recipient’s number is disconnected, out of service, or unreachable on the carrier network.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What to do:`}),` Try again later in case the recipient’s phone was turned off or outside of the carrier’s service area. If continued attempts fail to be delivered, consider removing them from your list, as it may be a permanent disconnection.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Permanent undeliverability.`}),` When Surge receives `,_jsx(_components.code,{children:`invalid_mobile_number`}),` or `,_jsx(_components.code,{children:`unreachable_carrier`}),` for a number, that number is permanently flagged as undeliverable in Surge’s carrier database. All future sends to it (from any account) are cancelled immediately without hitting the carrier. If a number becomes reachable again (e.g., the subscriber reactivates their SIM), the flag clears when a successful delivery is recorded. Stop sending to failed numbers — it has no effect, and your campaign volume quota is still consumed. Contact support if you’d like to opt out of this behavior.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`invalid_content_type`,children:_jsx(_components.code,{children:`invalid_content_type`})}),`\n`,_jsx(_components.p,{children:`An MMS attachment’s content type isn’t supported by the recipient’s carrier or handset.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`What to do:`}),` Retry with a different format (prefer `,_jsx(_components.code,{children:`image/jpeg`}),` or `,_jsx(_components.code,{children:`image/png`}),`) or send the content as a link instead of an attachment.`]}),`\n`,_jsx(Heading,{level:`3`,id:`message_filtered`,children:_jsx(_components.code,{children:`message_filtered`})}),`\n`,_jsx(_components.p,{children:`The carrier’s spam filter blocked the message. This can happen when message content matches spam patterns, and is most typically seen when links included in the message have been flagged by the carrier as potentially spam.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`What to do:`})}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Check that message content matches your registered campaign description and sample messages`}),`\n`,_jsx(_components.li,{children:`Make sure message content doesn’t use any wording that could suggest a relationship to forbidden messaging categories including alcohol, gambling, drugs, cryptocurrency, etc.`}),`\n`,_jsx(_components.li,{children:`Avoid link shorteners that aren’t trusted by carriers. If possible use a link domain that is specific to the brand sending the messages.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`complete-failure-reason-reference`,children:`Complete failure reason reference`}),`\n`,_jsxs(_components.p,{children:[`All possible values for `,_jsx(_components.code,{children:`failure_reason`}),` in `,_jsx(_components.code,{children:`message.failed`}),` events:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Reason`}),_jsx(_components.th,{children:`Meaning`}),_jsx(_components.th,{children:`Retryable?`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`account_archived`})}),_jsx(_components.td,{children:`The sending account has been archived`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`account_locked`})}),_jsx(_components.td,{children:`The platform has been locked due to a policy violation`}),_jsx(_components.td,{children:`No. Contact support`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`attachment_retrieval_error`})}),_jsx(_components.td,{children:`Surge couldn’t fetch the attachment URL when building the MMS`}),_jsx(_components.td,{children:`Yes. Fix the URL or hosting`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`blocked`})}),_jsx(_components.td,{children:`The number has been explicitly blocked at the carrier level`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`carrier_error`})}),_jsx(_components.td,{children:`A transient error from the carrier network`}),_jsx(_components.td,{children:`Yes. Surge retries automatically`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`configuration_error`})}),_jsx(_components.td,{children:`The account’s carrier credentials are misconfigured`}),_jsx(_components.td,{children:`No. Contact support`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`daily_message_cap_reached`})}),_jsx(_components.td,{children:`The campaign’s daily T-Mobile volume cap was hit`}),_jsx(_components.td,{children:`Yes. Automatically next day`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`geo_not_enabled`})}),_jsx(_components.td,{children:`The destination country isn’t in the platform’s allowed regions`}),_jsx(_components.td,{children:`No. Contact support to enable the region`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_attachment_url`})}),_jsx(_components.td,{children:`The attachment URL is malformed or not publicly accessible`}),_jsx(_components.td,{children:`Yes. Fix the URL`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_content_type`})}),_jsx(_components.td,{children:`MMS attachment type unsupported by the recipient’s carrier`}),_jsx(_components.td,{children:`Yes. Use a supported format`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`invalid_mobile_number`})}),_jsx(_components.td,{children:`The number is not a valid mobile number (e.g., a landline)`}),_jsx(_components.td,{children:`No. Permanently undeliverable`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`matching_sender_and_receiver`})}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`from`}),` and `,_jsx(_components.code,{children:`to`}),` numbers are the same`]}),_jsx(_components.td,{children:`No. Sending to yourself isn’t supported`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message_filtered`})}),_jsx(_components.td,{children:`Blocked by carrier spam filters or Surge’s content policy`}),_jsx(_components.td,{children:`Investigate content before retrying`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`message_too_big`})}),_jsx(_components.td,{children:`The message body exceeds the 1,600-character limit`}),_jsx(_components.td,{children:`Yes. Shorten the message`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mms_not_supported`})}),_jsx(_components.td,{children:`The recipient’s carrier or handset doesn’t support MMS`}),_jsx(_components.td,{children:`Yes. Surge falls back to SMS automatically`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`opted_out`})}),_jsx(_components.td,{children:`The contact has opted out of this conversation`}),_jsx(_components.td,{children:`No. Wait for explicit opt-in`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`premium_rate_number`})}),_jsx(_components.td,{children:`The destination is a premium-rate number`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`suspected_fraud`})}),_jsx(_components.td,{children:`Surge’s fraud detection flagged the send`}),_jsx(_components.td,{children:`No. Contact support`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unknown_destination`})}),_jsx(_components.td,{children:`The number doesn’t exist on any carrier network`}),_jsx(_components.td,{children:`No. Permanently undeliverable`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unknown_error`})}),_jsx(_components.td,{children:`An error occurred that Surge couldn’t categorize`}),_jsx(_components.td,{children:`Investigate with support`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unreachable_carrier`})}),_jsx(_components.td,{children:`The destination carrier network is unreachable`}),_jsx(_components.td,{children:`No. Permanently undeliverable`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unreachable_destination`})}),_jsx(_components.td,{children:`The number is disconnected or out of service`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unregistered_number`})}),_jsx(_components.td,{children:`The sending number isn’t registered with the carrier for this message type`}),_jsx(_components.td,{children:`No. Contact support`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`unsupported_route`})}),_jsx(_components.td,{children:`No valid carrier route exists for this number pair`}),_jsx(_components.td,{children:`No. Contact support`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`validation-errors`,children:`Validation errors`}),`\n`,_jsxs(Heading,{level:`3`,id:`validation_error-422`,children:[_jsx(_components.code,{children:`validation_error`}),` (422)`]}),`\n`,_jsxs(_components.p,{children:[`A request field is missing or invalid. The `,_jsx(_components.code,{children:`detail`}),` map contains per-field errors.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,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:`10`,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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"validation_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:`\"Could not perform the request with the provided parameters.\"`}),_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:` \"detail\"`}),_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:` \"to\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"is not a valid E.164 phone number\"`}),_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:` \"body\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"can't be blank\"`}),_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`,_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:[_jsx(_components.strong,{children:`Fix:`}),` Correct the flagged fields. Phone numbers must include the country code with a `,_jsx(_components.code,{children:`+`}),` prefix (e.g. `,_jsx(_components.code,{children:`+18015551234`}),`, not `,_jsx(_components.code,{children:`8015551234`}),`).`]}),`\n`,_jsx(Heading,{level:`2`,id:`full-error-reference`,children:`Full error reference`}),`\n`,_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/api-reference/errors`,children:`Error Reference`}),` for the complete list of error types, HTTP status codes, and additional context.`]})]})}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":"Handle Failures","description":"Every send-time and delivery-time error code, retryability, and specific remediation steps for each failure type.","href":"/sending/handle-failures"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Error structure","slug":"error-structure","depth":2,"children":[]},{"title":"Errors at send time","slug":"errors-at-send-time","depth":2,"children":[{"title":"opted_out (422)","slug":"opted_out-422","depth":3,"children":[]},{"title":"demo_message_limit (403)","slug":"demo_message_limit-403","depth":3,"children":[]},{"title":"link_size_limit (422)","slug":"link_size_limit-422","depth":3,"children":[]},{"title":"no_phone_number (422)","slug":"no_phone_number-422","depth":3,"children":[]},{"title":"phone_number_not_found (422)","slug":"phone_number_not_found-422","depth":3,"children":[]}]},{"title":"Errors at delivery (via webhooks)","slug":"errors-at-delivery-via-webhooks","depth":2,"children":[{"title":"unreachable_destination","slug":"unreachable_destination","depth":3,"children":[]},{"title":"invalid_content_type","slug":"invalid_content_type","depth":3,"children":[]},{"title":"message_filtered","slug":"message_filtered","depth":3,"children":[]},{"title":"Complete failure reason reference","slug":"complete-failure-reason-reference","depth":3,"children":[]}]},{"title":"Validation errors","slug":"validation-errors","depth":2,"children":[{"title":"validation_error (422)","slug":"validation_error-422","depth":3,"children":[]}]},{"title":"Full error reference","slug":"full-error-reference","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"surge-67d47b03","siteName":"Surge","title":"Handle Failures - Surge","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-24T21:50:46.546Z","originalFileLocation":"sending/handle-failures.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 send-time and delivery-time error code, retryability, and specific remediation steps for each failure type.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Surge\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/surge-67d47b03/sXzShSiekorghOlZ/_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/surge-67d47b03/sXzShSiekorghOlZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/surge-67d47b03/sXzShSiekorghOlZ/_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/surge-67d47b03/sXzShSiekorghOlZ/_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/surge-67d47b03/sXzShSiekorghOlZ/_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/surge-67d47b03/sXzShSiekorghOlZ/_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/surge-67d47b03/sXzShSiekorghOlZ/_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/surge-67d47b03/sXzShSiekorghOlZ/_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/surge-67d47b03/sXzShSiekorghOlZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Handle Failures - Surge\">\u003cmeta data-mint-head property=\"og:description\" content=\"Every send-time and delivery-time error code, retryability, and specific remediation steps for each failure type.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Surge\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.surge.app/sending/handle-failures\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://surgemsg.com/images/surge-preview-9b01c93f5b24bb5128b47c354c371546.jpg?vsn=d\">\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=\"Handle Failures - Surge\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Every send-time and delivery-time error code, retryability, and specific remediation steps for each failure type.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://surgemsg.com/images/surge-preview-9b01c93f5b24bb5128b47c354c371546.jpg?vsn=d\">\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/surge-67d47b03/sXzShSiekorghOlZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Surge\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8200ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.surge.app/sending/handle-failures\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sending/handle-failures.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.surge.app/#organization\",\"name\":\"Surge\",\"url\":\"https://docs.surge.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/surge-67d47b03/1YdD2Aq20HHnJtCK/logo.svg?fit=max\u0026auto=format\u0026n=1YdD2Aq20HHnJtCK\u0026q=85\u0026s=fb53e91d462980a01e9b7c046c98f339\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.surge.app#website\",\"name\":\"Surge\",\"url\":\"https://docs.surge.app\",\"publisher\":{\"@id\":\"https://docs.surge.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.surge.app/sending/handle-failures#webpage\",\"url\":\"https://docs.surge.app/sending/handle-failures\",\"name\":\"Handle Failures\",\"description\":\"Every send-time and delivery-time error code, retryability, and specific remediation steps for each failure type.\",\"dateModified\":\"2026-08-24T21:50:46.546Z\",\"isPartOf\":{\"@id\":\"https://docs.surge.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.surge.app/sending/handle-failures#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.surge.app/sending/handle-failures#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Sending messages\",\"item\":\"https://docs.surge.app/sending/send-one\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Handle Failures\",\"item\":\"https://docs.surge.app/sending/handle-failures\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.surge.app/sending/handle-failures#article\",\"headline\":\"Handle Failures\",\"name\":\"Handle Failures\",\"description\":\"Every send-time and delivery-time error code, retryability, and specific remediation steps for each failure type.\",\"url\":\"https://docs.surge.app/sending/handle-failures\",\"mainEntityOfPage\":{\"@id\":\"https://docs.surge.app/sending/handle-failures#webpage\"},\"image\":\"https://surgemsg.com/images/surge-preview-9b01c93f5b24bb5128b47c354c371546.jpg?vsn=d\",\"dateModified\":\"2026-08-24T21:50:46.546Z\",\"publisher\":{\"@id\":\"https://docs.surge.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.surge.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Surge\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Surge\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/sending/handle-failures.md","siteName":"Surge","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","groups":[{"group":"Get started","pages":[{"title":"What is Surge","href":"/overview/what-is-surge"},{"title":"How Surge is Organized","href":"/overview/how-surge-is-organized"},{"title":"Send Your First Message","href":"/quickstart"}]},{"group":"Register your business","pages":[{"title":"Register Your Business","href":"/registration/index"},{"title":"Register via API","href":"/registration/api-walkthrough"},{"title":"Canonical Schema Reference","href":"/registration/schema-reference"},{"title":"Register via Dashboard","href":"/registration/dashboard"},{"title":"Building on Surge: One Account per Customer","href":"/registration/one-account-per-customer"},{"title":"Avoiding Rejection: Patterns from Real Registration Reviews","href":"/registration/avoiding-rejection"},{"title":"Sole Proprietor Path","href":"/registration/sole-proprietor"},{"title":"Toll-Free Verification","href":"/registration/toll-free"},{"title":"Fixing a Rejected or Changes-Needed Campaign","href":"/registration/fixing-rejected"}]},{"group":"Sending messages","pages":[{"title":"Send to One Person","href":"/sending/send-one"},{"title":"Send to Many People","href":"/sending/send-many"},{"title":"Ongoing Conversations","href":"/sending/conversations"},{"title":"Track Message Delivery","description":"How message delivery statuses work, webhook-based tracking, and how to list messages with cursor pagination.","href":"/sending/track-delivery"},{"title":"Handle Failures","href":"/sending/handle-failures"}]},{"group":"Receiving messages \u0026 webhooks","pages":[{"title":"Receiving Messages \u0026 Webhooks","description":"Configure a webhook endpoint, verify Surge webhook signatures, and handle incoming events in Python, TypeScript, Ruby, and Elixir.","href":"/receiving/index"},{"title":"Webhook Events","href":"/receiving/events"},{"title":"Two-Way Messaging Patterns","href":"/receiving/two-way"}]},{"group":"Phone numbers","pages":[{"title":"Purchasing a Number","href":"/phone-numbers/purchasing"},{"title":"Importing a Number","href":"/phone-numbers/importing"},{"title":"International Numbers","href":"/phone-numbers/international"},{"title":"Attaching a Number to a Campaign","href":"/phone-numbers/attaching"}]},{"group":"Verifications","pages":[{"title":"Send and verify a code","href":"/verifications/send-and-verify"},{"title":"Usage patterns and delivery gotchas","href":"/verifications/usage-patterns"}]},{"group":"Channels roadmap","pages":[{"title":"RCS and WhatsApp","href":"/channels-roadmap/rcs-and-whatsapp"},{"title":"Voice","href":"/channels-roadmap/voice"}]},{"group":"Embeddable UI components","pages":[{"title":"Embeddable UI Components","href":"/embeddable/index"},{"title":"Working with Users","href":"/embeddable/users"},{"title":"Inbox component","href":"/embeddable/inbox"},{"title":"Conversation Component","href":"/embeddable/conversation"},{"title":"Unread Count Component","href":"/embeddable/unread-count"}]},{"group":"Concepts","pages":[{"title":"SMS Segments \u0026 Encoding","href":"/concepts/sms-segments"},{"title":"The Campaign Registry (TCR) and Becoming a CSP","href":"/concepts/tcr"},{"title":"Consent Flows: How Users Opt In","href":"/concepts/consent-flows"},{"title":"Required Disclosures and Opt-In Templates","href":"/concepts/required-disclosures"},{"title":"Deliverability","href":"/concepts/deliverability"}]}]},{"anchor":"SDKs","icon":"code","pages":[{"title":"SDKs","href":"/sdks"}]},{"anchor":"API Reference","icon":"terminal","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"anchor":"Resources","icon":"folder-open","pages":[{"title":"Resources","href":"/resources/hipaa"}]}]},"basePath":"","title":"Handle Failures - Surge","deploymentId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","buildId":"dpl_HhUetB7eHHDAmK9T1Teip38TgFx9","dynamics":[],"chunks":[]}