> For the complete documentation index, see [llms.txt](https://docs.viesus.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.viesus.com/support/error-codes/nodejs.md).

# Node.js Error Codes

The Node.js module returns an integer after each enhancement call:

* **`> 0`** — enhancement succeeded; the value is the processing time in milliseconds.
* **`< 0`** — enhancement failed; the value is one of the error codes below.

For symptom-based troubleshooting, see [Troubleshooting](/support/troubleshooting.md).

***

## Error codes

<table><thead><tr><th width="170">Code</th><th>Description</th></tr></thead><tbody><tr><td>-1</td><td>Init failed</td></tr><tr><td>-2</td><td>GUID wrong</td></tr><tr><td>-3</td><td>Internal error</td></tr><tr><td>-4</td><td>Loading image not possible</td></tr><tr><td>-5</td><td>Can't open file</td></tr><tr><td>-6</td><td>File not found</td></tr><tr><td>-7</td><td>File is empty</td></tr><tr><td>-8</td><td>Mem open internal error</td></tr><tr><td>-9</td><td>Enhancement failed — contact <a href="mailto:support@viesus.com">support@viesus.com</a> for further investigation</td></tr><tr><td>-10</td><td>Parameter file not found</td></tr><tr><td>-11</td><td>Parameter file empty</td></tr><tr><td>-12</td><td>Output format not supported</td></tr><tr><td>-13</td><td>Error writing result file</td></tr></tbody></table>

### Additional errors

<table><thead><tr><th width="170">Code</th><th>Description</th></tr></thead><tbody><tr><td>-126</td><td>Enhancement failed — image was already enhanced</td></tr><tr><td>-378</td><td>Enhancement failed — wrong GUID entered</td></tr></tbody></table>

Codes below **`-18`** (other than the named codes above) indicate internal errors. Contact <support@viesus.com> if you receive one.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.viesus.com/support/error-codes/nodejs.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
