The Hubtel SMS API uses standard HTTP error reporting. Successful requests return HTTP status codes in the 2xx. Failed requests return status codes in 4xx and 5xx. Error responses are included in the JSON response body, which contains information about the error.

CodeSubcodeDescription
200The request was successful and the message has been sent for
onward delivery.
2010The request was successful and the message has been sent for onward delivery
100General invalid request. Returned when no data is sent or a malformed request is received.
1Invalid Destination address received. The recipient's phone number is not a valid phone number
2Invalid Source address was sent. You need to be aware of the sender address restrictions.
3The message body was too long.
4004The message is not routable on Hubtel gateway
5The delivery time specified was not a valid time.
6The message content was rejected or is invalid.
7One or more parameters are not allowed in the message. Details will be provided as part of the response.
8One or more parameters are not valid for the message. Details will be provided as part of the response.
12Payment required on account; Kindly fund your account
401The request authorization failed.
402Your account does not have enough messaging credit to send the message.
403Forbidden. It means that the recipient has not given his/her approval to receive messages.
404The specified message was not found.
500The request failed on the server.
502Bad Gateway. The server could not find any appropriate gateway for the request.