< Home

engine http status-code

Function

The engine http status-code command configures the HTTP status code of the push information.

The undo engine http status-code command restores the HTTP status code of the push information to the default value 503.

Format

engine http status-code { 401 | 403 | 404 | 503 }

undo engine http status-code

Parameters

Parameter Description Value

401

Indicates that the request is not authorized.

-

403

Indicates that the server request is denied.

-

404

Indicates that the request fails.

-

503

Indicates that the server cannot process the request currently.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

By default, the HTTP status code of the push information is 503.

If the HTTP status code of the push information fails to meet your requirement, you can run the engine http status-code command to modify the HTTP status code.

Example

# Set the HTTP status code of the push information to 404.

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