• Web Application Firewall

waf
  1. Help Center
  2. Web Application Firewall
  3. API Reference
  4. Appendix
  5. Error Codes

Error Codes

Function Description

A customized message is returned when errors, such as 400 or 500, occur in an extended public cloud API. This section describes the meaning of each error code.

Response Format

  • HTTP status code
    400
  • Response example
    {
    "error_code": "11000000",
    "error_msg": "hx error."
    }

Error Code Description

Error Code

Description

WAF.1001

Invalid request

WAF.1002

Invalid page number or page size

WAF.1003

Invalid ID

WAF.1004

Invalid name

WAF.1005

Invalid path

WAF.1006

Invalid rate limiting mode

WAF.1007

Invalid user identifier

WAF.1008

Invalid protective action

WAF.1009

Invalid CC attack protection rule

WAF.1012

Invalid Referer

WAF.1013

Invalid type

WAF.1014

Invalid logic

WAF.1015

Invalid subfield

WAF.1016

Invalid content

WAF.1018

Invalid precise protection rule

WAF.1019

Invalid data masking rule

WAF.1020

Invalid User-Agent

WAF.1021

Invalid IP address

WAF.1022

Invalid false alarm masking rule

WAF.1023

Invalid number

WAF.1025

Invalid time

WAF.1029

Invalid protection level

WAF.1030

Invalid priority

WAF.1031

Invalid attack type

WAF.1600

Invalid domain name

WAF.1601

Invalid protocol

WAF.1602

Invalid server address

WAF.1603

Invalid port

WAF.1604

Invalid protection status or connection status

WAF.1605

Invalid certificate content format

WAF.1606

Invalid private key format

WAF.2001

IDs do not match.

WAF.2002

The protective action cannot be set to block.

WAF.2004

The user identifier is unavailable in a CC attack protection rule.

WAF.2005

The condition list in the precise protection rule is empty.

WAF.2006

Subfields cannot be set for conditions in the precise protection rule.

WAF.2007

The precise protection rule contains duplicate conditions.

WAF.2008

Wildcard domains are not supported.

WAF.3001

The requested resource was not found.

WAF.3002

The number of resources exceeds the maximum limit allowed.

WAF.3003

The resource is in use.

WAF.3004

The system is busy.

WAF.3005

The domain name already exists.

WAF.3006

The rule name already exists.

WAF.3007

Rules conflict with each other.

WAF.3008

The rule already exists.

WAF.3010

The policy has been bound to the domain name.

WAF.4000

The API cannot be found.

WAF.4001

The method is not allowed.

WAF.5000

Internal error

WAF.5001

Failed to access data.

WAF.5002

HTTP request failed.

WAF.5003

Elasticsearch request failed.

WAF.6000

Connection failed.

WAF.6001

The request is not permitted.

WAF.6002

Failed to read obtained data.

WAF.6003

Failed to export data.

WAF.6004

Failed to import data.

WAF.7001

The data exceeds the valid length.

WAF.9001

IAM authentication failed.

WAF.9002

No permission