更新时间:2022-08-15 GMT+08:00

状态码

表1 正常状态码

正常返回码

类型

说明

200

OK

GET和PUT操作正常返回。

201

Created

POST操作正常返回。

204

No Content

DELETE操作正常返回。

表2 错误状态码

错误返回码

类型

可能的错误原因

400

Bad request

Malformed request URI or body

Requested admin state invalid

Invalid values entered

Bulk operations disallowed

Validation failed

Method not allowed for request body (such as trying to update attributes that can

be specified at create-time only)

The network is not external, such as router: external=False.

The internal OpenStack Networking port is not associated with the floating IP address.

The requested floating IP address does not fall in the subnet range for the external network.

The fixed IP address is not valid.

Router port must have exactly one fixed IP

Subnet for router interface must have a gateway IP

401

Unauthorized

Authentication required

403

Forbidden

Non existent URI

Resource not found

404

Not Found

Non existent URI

Resource not found

The port UUID is not valid.

409

Conflict

Port configured on network

IP allocated on subnet

Conflicting IP allocation pools for subnet

The requested floating IP address is already in use.

The internal OpenStack Networking port and fixed IP address are already associated with another floating IP.

500

Internal server error

Internal OpenStack Networking error

503

Service unavailable

Failure in Mac address generation