# ErrorCode Method
**Obsolete.** Sets an Integer value (e.g. HttpStatusCode) as the Error Code of a ExceptionResponse object.

## Syntax
```javascript
	ErrorCode(int: Integer)
```

## Parameters
### *int*
Type: Integer<br/>
Error code as a integer to be assigned to the 'errorcode' exception property.

## Return Value
### *None*

## Remarks
**Obsolete.**API Exception does not support Error Codes anymore. This feature will be removed in future versions.

## See Also
[ErrorCode()](./errorcode1.md)<br />
[ErrorCode(Text)](./errorcode2.md)<br />
