Reference documentation and code samples for the Google Cloud Network Services V1 Client class ResponseCode.
Supported HTTP response code.
Protobuf type google.cloud.networkservices.v1.HttpRoute.Redirect.ResponseCode
Namespace
Google \ Cloud \ NetworkServices \ V1 \ HttpRoute \ RedirectMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
RESPONSE_CODE_UNSPECIFIED
Value: 0Default value
Generated from protobuf enum RESPONSE_CODE_UNSPECIFIED = 0;
MOVED_PERMANENTLY_DEFAULT
Value: 1Corresponds to 301.
Generated from protobuf enum MOVED_PERMANENTLY_DEFAULT = 1;
FOUND
Value: 2Corresponds to 302.
Generated from protobuf enum FOUND = 2;
SEE_OTHER
Value: 3Corresponds to 303.
Generated from protobuf enum SEE_OTHER = 3;
TEMPORARY_REDIRECT
Value: 4Corresponds to 307. In this case, the request method will be retained.
Generated from protobuf enum TEMPORARY_REDIRECT = 4;
PERMANENT_REDIRECT
Value: 5Corresponds to 308. In this case, the request method will be retained.
Generated from protobuf enum PERMANENT_REDIRECT = 5;