< Home

audit status-code custom-mode

Function

The audit status-code custom-mode command sets the HTTP status code audit mode to the user-defined mode.

The undo audit status-code custom-mode command restores the HTTP status code audit mode to the default mode.

Format

audit status-code custom-mode

undo audit status-code custom-mode

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

By default, HTTP status code audit is in the default mode, which audits only common HTTP status codes, including 101, 201, 202, 203, 204, 205, 206, 300, 301, 302, 303, 304, 305, 307, 401, 402, 403, 404, 408, 413, 414, 501, 502, 503, 504, and 505.

To audit a specific HTTP status code, run this command to set the HTTP status code audit mode to the user-defined mode and then run the audit status-code command to configure the audit of the specific HTTP status code.

Example

# Set the HTTP status code audit mode to the user-defined mode.

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