< Home

audit status-code

Function

The audit status-code command configures the audit of a specific HTTP status code.

The undo audit status-code command cancels the audit of a specific HTTP status code.

Format

audit status-code status-code

undo audit status-code { status-code | all }

Parameters

Parameter Description Value
status-code Indicates the HTTP status code. The value is an integer ranging from 100 to 599, and 200 is not supported.
all Cancels the audit of all specified HTTP status codes. -

Views

System view

Default Level

3: Management level

Usage Guidelines

Before using this command to configure the audit of a specific HTTP status code, you must first run the audit status-code custom-mode command to set the HTTP status code audit mode to the user-defined mode.

Example

# Configure the audit of HTTP status code 111.

<sysname> system-view
[sysname] audit status-code 111
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >