# Operation Error

```javascript
class OperationError extends Error {
      code: string;
      message: string;
      data: string;
}
```

**data** has a value if return data for an incomplete session is enabled and the user successfully passed the first scan step.

<table><thead><tr><th width="326">Error Code</th><th>Description</th></tr></thead><tbody><tr><td>UNEXPECTED_ERROR</td><td>Generic network error</td></tr><tr><td>UNAUTHORIZED</td><td>Token expired or invalid</td></tr><tr><td>FORBIDDEN</td><td>The requested feature is not enabled for your token</td></tr><tr><td>SESSION_EXPIRED_OR_NOT_FOUND</td><td>Session expired or not found</td></tr><tr><td>MEDIA_NOT_ALLOWED_ERROR</td><td>Camera not allowed by the user</td></tr><tr><td>MEDIA_NOT_FOUND_ERROR</td><td>Camera not found</td></tr><tr><td>MEDIA_SECURITY_ERROR</td><td>The device not allowed access to camera</td></tr><tr><td>MEDIA_UNKNOWN_ERROR</td><td>This device/platform/browser/version combination is not supported<br><strong>Note</strong>: In order for the SDK to access the camera your website needs to use https, see <a href="https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia">https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia</a></td></tr><tr><td>MEDIA_VIRTUAL_CAMERA_DETECTED</td><td>Virtual camera usage has been detected</td></tr><tr><td>USER_CANCEL</td><td>The user drop the session</td></tr><tr><td>INVALID_CONFIG</td><td>Invalid configuration</td></tr><tr><td>SESSION_INVALIDATED_FACE_RECOGNITION_TOO_MANY_ATTEMPTS</td><td>Too many failed facial recognition attempts</td></tr><tr><td>WASM_NOT_SUPPORTED</td><td>The browser lacks the essential features required to run a WASM module</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.uqudo.com/docs/kyc/uqudo-sdk/integration/web/operation-error.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
