Skip to main content

Error Codes Reference

When an API request fails, the response includes an errorCode attribute and (on v2.0 devices) an errorDesc with a human-readable description.

<?xml version="1.0" encoding="utf-8" ?>
<config status="failed" errorCode="1" errorDesc="Invalid Request"/>
note

v1.9 devices return only the numeric errorCode. v2.0 adds the errorDesc attribute.

Base Error Codes

These codes apply to all API commands on both v1.9 and v2.0 devices.

CodeDescription
0Successful
1Invalid Request — command name, channel ID, or action name not recognized
2Invalid XML Format — XML cannot be parsed
3Invalid XML Content — incomplete message or out-of-range parameters
4Permission Denied — user lacks permission
5Network Port Error — network port number error (v1.9) / client restricted by blacklist/whitelist (v2.0)

Extended Error Codes (v2.0)

These additional codes are available on v2.0 firmware.

CodeDescription
6Sensor ID Error — invalid sensor ID
7System Busy — system upgrading or importing config
8Password Expired — change password and retry
9Unauthorized — incorrect username or password
10User Locked — user account locked
11Unsupported Function — function not supported on this device
12Channel Error — invalid channel ID
13SD Error — SD card status error
14Action Error — invalid action name in URL
15Missing Required Parameters
16Range Error — parameter value out of range
17Service Not Enabled — API service not enabled
18Modification Not Allowed — change would cause system restart
19Over Specifications — exceeding system limits
79Internal Error — device processing error
80Upgrade Error
81Upgrade Version Same
82Upgrade Package Error — package doesn't match device
83Upgrade Signature Error
84Upgrade Incompatible

Audio Error Codes (v2.0)

Returned by audio-related commands.

CodeDescription
101Audio not working
102Audio parameter error
103Audio not PCM format
104Audio not Wave format
105Audio sampling rate error
106Audio save failed
107Audio file count over limit
108Audio file too large
109Audio file does not exist
110Audio alarm already active
111Audio file occupied by another process

Face Processing Error Codes (v2.0)

Returned by face detection configuration commands.

CodeDescription
150General face processing error
151Exceeding maximum face sample library limit
152Face picture format not supported
153No face or more than one face in the picture
154Picture is too large
155Same face already exists in face sample library
156Face does not exist
157Face group already exists
158Exceeding maximum face groups limit
159Face group does not exist

License Plate Processing Error Codes (v2.0)

Returned by license plate recognition configuration commands.

CodeDescription
201General license plate processing error
202Exceeding maximum license plate library limit
203Same license plate already exists
204License plate not found
205License plate group already exists
206Exceeding maximum license plate groups limit
207License plate group does not exist