**Source URL:** https://general.veevavault.dev/qualityone/mdl/documentation/references/errors.md

# Errors

Each Vault API response includes a field called `responseStatus` for the overall status of the request. In addition, the status of each statement is returned in the `response` field for each `statement_execution` item. Possible values are:

* `SUCCESS` - Successfully processed.

* `WARNING` - Successfully processed but there is an informational message.

* `FAILURE` - Could not be processed because of user error.

* `EXCEPTION` - Could not be processed because of a system error.

For a status other than `SUCCESS`, users can inspect the `errors` field of `statement_execution` in the response:

* `line` - The line number where the error occurred.

* `message` - The message accompanying each error type. These messages are subject to change and are not contractual parts for error handling. Developers should consider error messages for debugging and troubleshooting purposes only and should not implement application logic which relies on specific error strings or formatting.

* `context` - The attribute name where the error occurred.

* `code` - An error code specific to this type of error.

### Example {#Example}

```
{
    "responseStatus": "FAILURE",
    "script_execution": {
        "code": "GEN-F-401",
        "message": "Script execution failed",
        "warnings": 0,
        "failures": 1,
        "exceptions": 0,
        "components_affected": 0,
        "execution_time": 0.1
    },
    "statement_execution": [
        {
            "vault": "z-team-promomats.veevavault.com",
            "statement": 1,
            "command": "CREATE",
            "component": "Picklist.color__c",
            "message": "[FAILURE] CREATE Picklist color__c",
            "response": "FAILURE",
            "errors": [
                {
                    "line": 1,
                    "message": "Component already exists with attribute [name], value [color__c]",
                    "context": "name",
                    "code": "GEN-FCRE-II-1007"
                }
            ]
        }
    ]
}

```


---

**Previous:** [Attribute Data Types](/qualityone/mdl/documentation/references/attribute-data-types)  
**Next:** [Security](/qualityone/mdl/documentation/references/security)