Hosted SIM API

Error codes

Every error carries a code, and more_info links to its page here. Five-digit codes are about the request or the account; six-digit codes (700000-799999) are about your line, its calls and texts, TwiML, Media Streams and webhooks. A code is never renumbered or reused.

Request and account errors

CodeHTTPWhere you see itMeaning
20003401HTTPauthentication failed
20005401HTTPthe account isn't active
20403403HTTPthis key can't do that
20404404HTTPnot found (also: a call that isn't on this line)
20429429HTTPtoo many requests
21205400HTTPthe Url isn't a valid URL
21211400HTTPinvalid To number
21212400HTTPinvalid From number
21220400HTTPthe call isn't in a state that allows this (it has ended)
21602400HTTPa message body is required
21606400HTTPFrom isn't a line on this account
21617400HTTPthe body is over 1600 characters

Line, call, text and webhook errors

CodeHTTPWhere you see itMeaning
700001409HTTPline busy: one call at a time per dongle
700002409HTTPthe line can't call now
700003400HTTPthis number type isn't allowed on this line (premium, short code, international)
700004400HTTPemergency numbers can't be called through the API: call 000 from a phone
700005400HTTPthis line has no calling dongle (texts only)
700006429HTTPthis line's call limit is reached
700007503HTTPthe dongle is busy for a moment: try again
700008400HTTPa call parameter isn't supported in v1
700009400HTTPa number parameter isn't supported in v1
700011400HTTPexactly one of Url or Twiml is required
700012400HTTPa parameter value is invalid or out of range
710001429HTTPthis line's text limit is reached
710002400HTTP / StatusCallbackthe text can't be sent
710003400HTTPa message parameter isn't supported in v1
710004400HTTPonly Body="" (redaction) is allowed when updating a message
711001400HTTPMMS (MediaUrl) isn't supported in v1
720001400HTTP (Twiml=) / StatusCallbacka TwiML verb or attribute isn't supported in v1
720002400HTTP (Twiml=) / StatusCallbackthe TwiML is invalid
720003-StatusCallbackthe call's TwiML budget was used up (fetches, verbs or time)
730001-StatusCallbackthe Media Streams URL couldn't be connected
730002-the stream closes + StatusCallbackan invalid or oversized stream message
730003-the stream closes + StatusCallbackthe stream was idle for 30 s
740001400HTTPthe SIP password doesn't meet the rules
740002429HTTPtoo many SIP password changes on this line
790001400HTTP (when set) / StatusCallback (at use)that URL can't be fetched (a refused address or scheme)
790002-StatusCallbackthe webhook timed out
790003-StatusCallbackthe webhook answered with an error status
790004-StatusCallbackthe fetched document or audio was too large
790005400HTTPan invalid list filter
790006413HTTPthe request body is over 64 KiB
799999500HTTP / StatusCallbackan internal error