User Manual

Table Of Contents
SARA-R4 series-AT commands manual
UBX-17003787 - R16
AAppendix: Error result codes
Page 339 of 401
Numeric
error code
Description Resulting from the following commands
162 ENSRSERVFAIL - DNS server returned general failure +UDNSRN
163 ENSRNOTFOUND - Domain name not found +UDNSRN
164 ENSRNOTIMP - DNS server does not implement requested
operation
+UDNSRN
165 ENSRREFUSED - DNS server refused query +UDNSRN
166 ENSRBADQUERY - Misformatted DNS query +UDNSRN
167 ENSRBADNAME - Misformatted domain name +UDNSRN
168 ENSRBADFAMILY - Unsupported address family +UDNSRN
169 ENSRBADRESP - Misformatted DNS reply +UDNSRN
170 ENSRCONNREFUSED - Could not contact DNS servers +UDNSRN
171 ENSRTIMEOUT - Timeout while contacting DNS servers +UDNSRN
172 ENSROF - End of file +UDNSRN
173 ENSRFILE - Error reading file +UDNSRN
174 ENSRNOMEM - Out of memory +UDNSRN
175 ENSRDESTRUCTION - Application terminated lookup +UDNSRN
176 ENSRQUERYDOMAINTOOLONG - Domain name is too long +UDNSRN
177 ENSRCNAMELOOP - Domain name is too long +UDNSRN
A.6Internet suite error classes
The following table lists all allowed error classes that can be provided by the <error_class> parameter for these
AT error commands:
SARA-R4 / SARA-N4 - +UFTPER, +UHTTPER, +UMQTTER that provide the error of the last FTP, HTTP,
MQTT operation.
<error_class> Description <error_codes> Resulting from the
following commands
0 OK, no error occurred All
1 FTP Protocol error class See the Appendix A.6.1 +UFTPC, +UFTP
3 HTTP Protocol error class See the Appendix A.6.2 +UHTTP, +UHTTPC
4 Flash File System error class See the Appendix A.6.3 +UFTPC, +UFTPER,
+UHTTPC
5 DNS error class +UFTPC, +UHTTPC,
+USMTPC
6 Socket error class BSD error codes standard All
7 Dynamic Memory error 0 All
8 Wrong FTP API usage (e.g. missing/null parameters) See the Appendix A.6.1 +UFTPC, +UFTP
10 Wrong HTTP API usage (e.g. missing/null
parameters)
See the Appendix A.6.2 +UHTTP, +UHTTPC
11 Syntax error in high layer Protocol (wrong/missing/
corrupted data)
+UFTPC, +UHTTPC,
+USMTPC
12 Unspecified error 0 All
13 MQTT error class See the Appendix A.6.4 +UMQTT, +UMQTTC,
+UMQTTWTOPIC,
+UMQTTWMSG
A.6.1FTP class error codes
The following table lists the available values of <error_code> parameter of the last FTP operation provided
through +UFTPER AT command if <error_class>=1 or 8 (for more details see the AT+UFTP, AT+UFTPC
commands description).
Numeric error code Description
0 No error
1 User missing
2 Password missing
3 Account missing
4 Server missing