Tools

    SMPP error codes (command_status)

    The 67 command_status values defined in SMPP v3.4 and v5.0. Each row links to the decoder with a sample response.

    Download CSV Download JSON

    NameHexDecMeaningSpecDecoder
    ESME_ROK 0x00000000 0 No error v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVMSGLEN 0x00000001 1 Message Length is invalid short_message longer than 254 octets without using message_payload TLV. v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVCMDLEN 0x00000002 2 Command Length is invalid command_length field does not match the actual PDU size (a framing bug). v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVCMDID 0x00000003 3 Invalid Command ID PDU type not supported by the bound session (e.g. submit on a receiver bind). v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVBNDSTS 0x00000004 4 Incorrect BIND Status for given command Sending submit_sm on a receiver bind, or a command before binding. v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RALYBND 0x00000005 5 ESME Already in Bound State A second bind on an already-bound session. Unbind first. v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVPRTFLG 0x00000006 6 Invalid Priority Flag v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVREGDLVFLG 0x00000007 7 Invalid Registered Delivery Flag v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RSYSERR 0x00000008 8 System Error Generic SMSC-side failure. Retryable; check SMSC logs / capacity. v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVSRCADR 0x0000000A 10 Invalid Source Address source_addr TON/NPI/value not permitted for this account (alpha sender not provisioned). v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVDSTADR 0x0000000B 11 Invalid Dest Addr destination_addr malformed or outside allowed number ranges. v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVMSGID 0x0000000C 12 Message ID is invalid message_id in query/cancel/replace not known. A hex/decimal mismatch is the usual cause. v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RBINDFAIL 0x0000000D 13 Bind Failed Generic bind rejection: wrong system_id/password, IP not allow-listed, or interface_version. v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVPASWD 0x0000000E 14 Invalid Password password field wrong or truncated (max 8 octets, C-Octet string, NULL-terminated). v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVSYSID 0x0000000F 15 Invalid System ID system_id unknown to the SMSC (typo, or bound to the wrong host/port). v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RCANCELFAIL 0x00000011 17 Cancel SM Failed v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RREPLACEFAIL 0x00000013 19 Replace SM Failed v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RMSGQFUL 0x00000014 20 Message Queue Full SMSC store is full. Back off and retry; this signals a capacity/throughput issue. v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVSERTYP 0x00000015 21 Invalid Service Type v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVNUMDESTS 0x00000033 51 Invalid number of destinations v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVDLNAME 0x00000034 52 Invalid Distribution List name v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVDESTFLAG 0x00000040 64 Destination flag is invalid (submit_multi) v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVSUBREP 0x00000042 66 Invalid submit with replace request v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVESMCLASS 0x00000043 67 Invalid esm_class field data v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RCNTSUBDL 0x00000044 68 Cannot Submit to Distribution List v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RSUBMITFAIL 0x00000045 69 submit_sm or submit_multi failed Generic submit rejection. Inspect account limits, spam filters, invalid content, or routing gaps. v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVSRCTON 0x00000048 72 Invalid Source address TON v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVSRCNPI 0x00000049 73 Invalid Source address NPI v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVDSTTON 0x00000050 80 Invalid Destination address TON v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVDSTNPI 0x00000051 81 Invalid Destination address NPI v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVSYSTYP 0x00000053 83 Invalid system_type field v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVREPFLAG 0x00000054 84 Invalid replace_if_present flag v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVNUMMSGS 0x00000055 85 Invalid number of messages v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RTHROTTLED 0x00000058 88 Throttling error (ESME exceeded allowed message limits) You are sending above your negotiated TPS/window. Slow down, tune window size, apply backoff. v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVSCHED 0x00000061 97 Invalid Scheduled Delivery Time v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVEXPIRY 0x00000062 98 Invalid message validity period (Expiry time) v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVDFTMSGID 0x00000063 99 Predefined Message ID is Invalid or not found v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RX_T_APPN 0x00000064 100 ESME Receiver Temporary App Error Code Receiver app is temporarily down; the SMSC will retry the deliver_sm. v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RX_P_APPN 0x00000065 101 ESME Receiver Permanent App Error Code Receiver rejected the message permanently; the SMSC drops it without retrying. v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RX_R_APPN 0x00000066 102 ESME Receiver Reject Message Error Code v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RQUERYFAIL 0x00000067 103 query_sm request failed v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVOPTPARSTREAM 0x000000C0 192 Error in the optional part of the PDU Body (TLV stream) v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_ROPTPARNOTALLWD 0x000000C1 193 Optional Parameter not allowed v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVPARLEN 0x000000C2 194 Invalid Parameter Length v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RMISSINGOPTPARAM 0x000000C3 195 Expected Optional Parameter missing v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RINVOPTPARAMVAL 0x000000C4 196 Invalid Optional Parameter Value v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RDELIVERYFAILURE 0x000000FE 254 Delivery Failure (data_sm_resp) Used with data_sm: the message could not be delivered to the MS. v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RUNKNOWNERR 0x000000FF 255 Unknown Error SMSC returned an unspecified failure. Check its logs; the code often maps to an internal reason. v3.4 §5.1.3; v5.0 §4.7.6 decode
    ESME_RSERTYPUNAUTH 0x00000100 256 ESME not authorised to use the specified service_type v5.0 §4.7.6 decode
    ESME_RPROHIBITED 0x00000101 257 ESME prohibited from using the specified operation v5.0 §4.7.6 decode
    ESME_RSERTYPUNAVAIL 0x00000102 258 Specified service_type is unavailable v5.0 §4.7.6 decode
    ESME_RSERTYPDENIED 0x00000103 259 Specified service_type is denied v5.0 §4.7.6 decode
    ESME_RINVDCS 0x00000104 260 Invalid Data Coding Scheme v5.0 §4.7.6 decode
    ESME_RINVSRCADDRSUBUNIT 0x00000105 261 Source Address Sub unit is invalid v5.0 §4.7.6 decode
    ESME_RINVDSTADDRSUBUNIT 0x00000106 262 Destination Address Sub unit is invalid v5.0 §4.7.6 decode
    ESME_RINVBCASTFREQINT 0x00000107 263 Broadcast Frequency Interval is invalid v5.0 §4.7.6 decode
    ESME_RINVBCASTALIAS_NAME 0x00000108 264 Broadcast Alias Name is invalid v5.0 §4.7.6 decode
    ESME_RINVBCASTAREAFMT 0x00000109 265 Broadcast Area Format is invalid v5.0 §4.7.6 decode
    ESME_RINVNUMBCAST_AREAS 0x0000010A 266 Number of Broadcast Areas is invalid v5.0 §4.7.6 decode
    ESME_RINVBCASTCNTTYPE 0x0000010B 267 Broadcast Content Type is invalid v5.0 §4.7.6 decode
    ESME_RINVBCASTMSGCLASS 0x0000010C 268 Broadcast Message Class is invalid v5.0 §4.7.6 decode
    ESME_RBCASTFAIL 0x0000010D 269 broadcast_sm operation failed v5.0 §4.7.6 decode
    ESME_RBCASTQUERYFAIL 0x0000010E 270 query_broadcast_sm operation failed v5.0 §4.7.6 decode
    ESME_RBCASTCANCELFAIL 0x0000010F 271 cancel_broadcast_sm operation failed v5.0 §4.7.6 decode
    ESME_RINVBCAST_REP 0x00000110 272 Number of Repeated Broadcasts is invalid v5.0 §4.7.6 decode
    ESME_RINVBCASTSRVGRP 0x00000111 273 Broadcast Service Group is invalid v5.0 §4.7.6 decode
    ESME_RINVBCASTCHANIND 0x00000112 274 Broadcast Channel Indicator is invalid v5.0 §4.7.6 decode

    An SMSC returning codes your client does not handle? IDNTEQ can help. SMPP integration consulting

    About this table where command_status appears, ranges, sources

    command_status is the third field of the 16-octet SMPP header (v3.4 §3.2). A request always carries 0; a response carries 0 for success or one of the codes above. When it is non-zero, a submit_sm_resp has no body (v3.4 §4.4.2), so there is no message_id.

    Ranges

    • 0x00000000–0x000000FF: v3.4 codes. Values not listed are reserved.
    • 0x00000100–0x00000112: added in v5.0 (service types, data coding, broadcast). A v3.4 SMSC does not send them.
    • 0x00000400–0x000004FF: reserved for SMSC vendor-specific errors. Their meaning comes from the SMSC or aggregator's own documentation.

    Reading the table

    The meaning column follows the spec's wording. The grey notes under some rows are our own: the cause we see most often and what to check first. Logs print the value in hex or decimal, so both are given, and each name and short hex value is an anchor, for example #esme_rthrottled or #0x58.

    Related