<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@digitalpersona/services](./services.md) &gt; [ServiceError](./services.serviceerror.md) &gt; [code](./services.serviceerror.code.md)

## ServiceError.code property

Numeric code of the error. In case of HTTP error the code will be an HTTP status code. In case of [service fault](./services.servicefault.md) the code will be an HRESULT server code.

<b>Signature:</b>

```typescript
readonly code: number;
```
