# Google Cloud Web Security Scanner V1 Client - Class Code (1.2.0)

1.2.0 (latest) 1.1.2 1.0.5 0.8.5 0.7.18 Reference documentation and code samples for the Google Cloud Web Security Scanner V1 Client class Code.

Output only.

Defines an error reason code.
Next id: 8

Protobuf type `google.cloud.websecurityscanner.v1.ScanRunErrorTrace.Code`

## Namespace

Google \\ Cloud \\ WebSecurityScanner \\ V1 \\ ScanRunErrorTrace

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### CODE_UNSPECIFIED

    Value: 0

Default value is never used.

Generated from protobuf enum `CODE_UNSPECIFIED = 0;`

### INTERNAL_ERROR

    Value: 1

Indicates that the scan run failed due to an internal server error.

Generated from protobuf enum `INTERNAL_ERROR = 1;`

### SCAN_CONFIG_ISSUE

    Value: 2

Indicates a scan configuration error, usually due to outdated ScanConfig
settings, such as starting_urls or the DNS configuration.

Generated from protobuf enum `SCAN_CONFIG_ISSUE = 2;`

### AUTHENTICATION_CONFIG_ISSUE

    Value: 3

Indicates an authentication error, usually due to outdated ScanConfig
authentication settings.

Generated from protobuf enum `AUTHENTICATION_CONFIG_ISSUE = 3;`

### TIMED_OUT_WHILE_SCANNING

    Value: 4

Indicates a scan operation timeout, usually caused by a very large site.

Generated from protobuf enum `TIMED_OUT_WHILE_SCANNING = 4;`

### TOO_MANY_REDIRECTS

    Value: 5

Indicates that a scan encountered excessive redirects, either to
authentication or some other page outside of the scan scope.

Generated from protobuf enum `TOO_MANY_REDIRECTS = 5;`

### TOO_MANY_HTTP_ERRORS

    Value: 6

Indicates that a scan encountered numerous errors from the web site
pages. When available, most_common_http_error_code field indicates the
most common HTTP error code encountered during the scan.

Generated from protobuf enum `TOO_MANY_HTTP_ERRORS = 6;`