# Web Security Scanner V1 API - Class Google::Cloud::WebSecurityScanner::V1::ScanRunErrorTrace (v1.6.0)

1.6.0 (latest) 1.5.1 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.1 0.6.0 0.5.0 0.4.1 0.3.5 Reference documentation and code samples for the Web Security Scanner V1 API class Google::Cloud::WebSecurityScanner::V1::ScanRunErrorTrace.

Output only.
Defines an error trace message for a ScanRun.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #code

    def code() -> ::Google::Cloud::WebSecurityScanner::V1::ScanRunErrorTrace::Code

**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1::ScanRunErrorTrace::Code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1/latest/Google-Cloud-WebSecurityScanner-V1-ScanRunErrorTrace-Code)) --- Output only. Indicates the error reason code.

### #code=

    def code=(value) -> ::Google::Cloud::WebSecurityScanner::V1::ScanRunErrorTrace::Code

**Parameter**

- **value** ([::Google::Cloud::WebSecurityScanner::V1::ScanRunErrorTrace::Code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1/latest/Google-Cloud-WebSecurityScanner-V1-ScanRunErrorTrace-Code)) --- Output only. Indicates the error reason code.
**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1::ScanRunErrorTrace::Code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1/latest/Google-Cloud-WebSecurityScanner-V1-ScanRunErrorTrace-Code)) --- Output only. Indicates the error reason code.

### #most_common_http_error_code

    def most_common_http_error_code() -> ::Integer

**Returns**

- (::Integer) --- Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available. For example, if this code is 404, the scan has encountered too many NOT_FOUND responses.

### #most_common_http_error_code=

    def most_common_http_error_code=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available. For example, if this code is 404, the scan has encountered too many NOT_FOUND responses.
**Returns**

- (::Integer) --- Output only. If the scan encounters TOO_MANY_HTTP_ERRORS, this field indicates the most common HTTP error code, if such is available. For example, if this code is 404, the scan has encountered too many NOT_FOUND responses.

### #scan_config_error

    def scan_config_error() -> ::Google::Cloud::WebSecurityScanner::V1::ScanConfigError

**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1::ScanConfigError](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1/latest/Google-Cloud-WebSecurityScanner-V1-ScanConfigError)) --- Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run.

### #scan_config_error=

    def scan_config_error=(value) -> ::Google::Cloud::WebSecurityScanner::V1::ScanConfigError

**Parameter**

- **value** ([::Google::Cloud::WebSecurityScanner::V1::ScanConfigError](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1/latest/Google-Cloud-WebSecurityScanner-V1-ScanConfigError)) --- Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run.
**Returns**

- ([::Google::Cloud::WebSecurityScanner::V1::ScanConfigError](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-web_security_scanner-v1/latest/Google-Cloud-WebSecurityScanner-V1-ScanConfigError)) --- Output only. If the scan encounters SCAN_CONFIG_ISSUE error, this field has the error message encountered during scan configuration validation that is performed before each scan run.