Error no.

HTTP status code

Description

0

200

NO_ERROR

  • description:_ No error.

0

201

NO_ERROR

  • description:_ No error.

1

500

ERROR_SYSTEM_FAILURE

  • description:_ System Failure.

2

405

ERROR_METHOD_NOT_ALLOWED

  • description:_ Method Not Allowed.

3

404

ERROR_NOT_FOUND

  • description:_ Not Found.

4

500

ERROR_DB_FAILURE

  • description:_ Database Failure.

5

500

ERROR_DB_RECOVERING

  • description:_ Database Recovering.

6

500

ERROR_DB_RECOVERED_FAIL

  • description:_ Database Recovered Failed.

7

500

ERROR_QUEUE_RECOVERING

  • description:_ Queue Recovering.

8

500

ERROR_QUEUE_FAILURE

  • description:_ Queue Failure.

9

500

ERROR_QUEUE_RECOVERED_FAIL

  • description:_ Queue Recovered Failed.

10

500

ERROR_CACHE_FAILURE

  • description:_ Cache Failure.

11

500

ERROR_CACHE_RECOVERING

  • description:_ Cache Recovering.

12

500

ERROR_CACHE_RECOVERED_FAIL

  • description:_ Cache Recovered Failed.

13

500

ERROR_CONNECTION_TIMEOUT

  • description:_ Connection Timeout.

14

500

ERROR_CONNECTION_REFUSED

  • description:_ Connection Refused.

15

500

ERROR_CONNECTION_FAILURE

  • description:_ Connection Failure.

50

500

ERROR_JSON_MARSHAL

  • description:_ JSON Marshal failed.

51

500

ERROR_JSON_UNMARSHAL

  • description:_ JSON Unmarshal failed.

52

500

ERROR_GIN_VARIABLE_NOT_FOUND

  • description:_ GIN variable not found.

53

500

ERROR_QUERY_STRING

  • description:_ Querystring values failed.

54

500

ERROR_MAKE_REQUEST

  • description:_ Cannot make request for request to client.

55

500

ERROR_IO_BODY

  • description:_ Cannot read response from client.

56

400

ERROR_FORM

  • description:_ Form is invalid.

100

401

ERROR_AUTHENTICATION_FAILED

  • description:_ Authentication failed.

101

403

ERROR_API_KEY_SUSPENDED

  • description:_ This API key has been suspended.

102

403

ERROR_IP_SUSPENDED

  • description:_ This IP has been suspended.

103

500

ERROR_IP_WHITELIST

  • description:_ IP Whitelist failed.

104

403

ERROR_IP_NOT_ALLOWED

  • description:_ This IP is not allowed.

105

404

ERROR_USER_NOT_FOUND

  • description:_ User not found.

106

403

ERROR_USER_BLOCKED

  • description:_ User has been blocked.

107

404

ERROR_USER_PROFILE_NOT_FOUND

  • description:_ User profile not found.

108

403

ERROR_USER_TRIAL

  • description:_ You are a trial member that can use the registered phone number only.

109

400

ERROR_FORCE

  • description:_ Force is invalid.

110

400

ERROR_SENDER

  • description:_ Sender is invalid.

111

404

ERROR_SENDER_NOT_FOUND

  • description:_ Sender not found.

112

400

ERROR_MESSAGE

  • description:_ The message is invalid.

113

400

ERROR_MESSAGE_TOO_LONG

  • description:_ The message is too long.

114

400

ERROR_MSISDN

  • description:_ MSISDN is invalid.

115

400

ERROR_MSISDN_EXCEEDED_LIMIT

  • description:_ MSISDN exceeded the limit.

116

423

ERROR_INSUFFICIENT_CREDIT

  • description:_ Insufficient credit.

118

400

ERROR_CALLBACK_URL

  • description:_ Callback Url is invalid.

119

400

ERROR_CALLBACK_METHOD

  • description:_ You can choose callback method are GET, POST or PUT method.

120

400

ERROR_SCHEDULED_DELIVERY

  • description:_ Scheduled delivery must be ISO-8601 (RFC-3339) format

121

400

ERROR_SCHEDULED_DELIVERY_TOO_FAR

  • description:_ Scheduled delivery must be less than 1 year.

122

400

ERROR_SCHEDULED_DELIVERY_TIMEZONE

  • description:_ Scheduled delivery must be used Asia/Bangkok timezone (+07:00).

123

400

ERROR_TAGS

  • description:_ Tags is invalid.

124

400

ERROR_TAGS_EXCEEDED_LENGTH

  • description:_ Tags exceeded the limit.

125

500

ERROR_TAGS_CREATE

  • description:_ Cannot create new tags.

126

400

ERROR_TAGS_EXIST

  • description:_ Tags exist.

128

403

ERROR_API_KEY_DISABLED

  • description:_ This API key has been disabled.

131

500

ERROR_SCHEDULED_DELIVERY_CREATE

  • description:_ Cannot create scheduled delivery.

132

500

ERROR_PUBLISH_OUTBOUND

  • description:_ Cannot publish outbound SMS data.

133

500

ERROR_API_KEY_DELETE_CACHE

  • description:_ Cannot delete cache of api_key.

134

404

ERROR_ACC_ID_NOT_FOUND

  • description:_ Acc ID not found.

135

500

ERROR_USER_TEMPLATE

  • description:_ User template failure.

136

400

ERROR_USER_TEMPLATE_NOT_MATCH

  • description:_ User template not match.

137

400

ERROR_TTL_FORMAT

  • description:_ ttl expire must be HH:mm format

138

400

ERROR_TTL

  • description:_ Expiration period is invalid, expire time must be more than 5 minutes and not more than 11 hours.