Enumeration EErrorsCodes

Enumeration Members

ACCEPTED: 202
BAD_GATEWAY: 502
BAD_PARAMETERS: 7

you pass an incorrect parameter

BAD_REQUEST: 400
CONFLICT: 409
CONTINUE: 100
CREATED: 201
EXPECTATION_FAILED: 417
FAIL_GET_CSRF_COOKIE: 2

Fail to read CSRF token from cookie in unifi answer

FAIL_LOGIN: 8

Client fail to login

FAIL_TO_DETECT_UNIFIOS: 1

fail to detect if it's UnifiOs or not

FIXED_IP_NEEDED: 9

fixed ip is needed to set fixed ip

FORBIDDEN: 403
FOUND: 302
GATEWAY_TIMEOUT: 504
GONE: 410
HTTP_VERSION_NOT_SUPPORTED: 505
INTERNAL_SERVER_ERROR: 500
LENGTH_REQUIRED: 411
METHOD_NOT_ALLOWED: 405
MOVED_PERMANENTLY: 301
MULTIPLE_CHOICES: 300
NEED_2FA: 499
NEED_LOGIN: 5

you need to login before using this function

NEED_MORE_RECENT_CONTROLLER: 3

the version of your controller is too old to access this property

NEED_TO_FORCE: 6

some functions will show a message, and you can force to use it

NON_AUTHORITATIVE_INFORMATION: 203
NOT_ACCEPTABLE: 406
NOT_FOUND: 404
NOT_IMPLEMENTED: 501
NOT_MODIFIED: 304
NO_CONTENT: 204
OK: 200
PARTIAL_CONTENT: 206
PAYMENT_REQUIRED: 402
PRECONDITION_FAILED: 412
PROXY_AUTHENTICATION_REQUIRED: 407
REQUESTED_RANGE_NOT_SATISFIABLE: 416
REQUEST_ENTITY_TOO_LARGE: 413
REQUEST_TIMEOUT: 408
REQUEST_URI_TOO_LONG: 414
RESET_CONTENT: 205
SEE_OTHER: 303
SERVICE_UNAVAILABLE: 503
SWITCHING_PROTOCOLS: 101
TEMPORARY_REDIRECT: 307
TOO_MANY_REQUESTS: 429
UNAUTHORIZED: 401
UNIFI_CONTROLLER_TYPE_MISMATCH: 4

the type of controller (unifiOs / non unifiOs) doesn't allow this property

UNKNOWN_ERROR: 0
UNPROCESSABLE_ENTITY: 422
UNSUPPORTED_MEDIA_TYPE: 415
USE_PROXY: 305

Generated using TypeDoc