# Methods to manage errors

Use these methods to retrieve info about the errors:

Methods:

- [**getErrors**](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-errors/lean-geterrors-method): use this method to get info about an error code
- [**getErrors_v2**](/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-errors/lean-geterrors_v2-method): use this method to get info about a specific error code or all errors code.


**The main errors that can be found within this method are:**

* [Error 2](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-2-empty-field) : some required fields are missing
* [Error 2084](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors#error-2084-the-insert-language-was-not-found-the-allowed-languages-are): The insert language was not found, the allowed languages are:


To get information about how to handle the errors: [How to handle errors](/products/leandisposable/enterprise-documentation/developer-documentation/integration-guide/lean-ig-how-to-handle-errors)