---
schema_version: "1"
id: a8ae848baa0d28656783450ce95f6a7c90e17458c52c03579b3f9fa7e002aa5d
title: StatusCode Enum
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_enum_Metadata_StatusCode.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_Metadata_StatusCode.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 02584376c2e66682513725fc73a2f856966989caaa38f85ed35b9bd60938520e
description: Describes the status code for an unsuccessful component deploy.
---
# StatusCode Enum

Describes the status code for an unsuccessful component deploy.

## Enum Values

The following are the values of the Metadata.StatusCode enum.

| Value | Description |
| --- | --- |
| INVALID\_SCS\_INBOUND\_USER | Log in as the RunAs user configured in your SCS setup. |
| REQUIRE\_CONNECTED\_APP\_SCS | SCS Connected App is not installed. |
| REQUIRE\_CONNECTED\_APP\_SESSION\_SCS | To use the SCS connected app, the user must be authenticated. |
| REQUIRE\_RUNAS\_USER | A RunAs user must be configured in your org. |

#### See Also

- [DeployProblemType Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_Metadata_DeployProblemType.htm "Describes the problem type for an unsuccessful component deploy.")