# Custom errors

Custom errors can be used in the manual intervention module to indicate certain errors where you want to perform certain actions. A custom defined problem consists of a code and a message. You can choose between document classification and entity extraction errors. When using the custom error codes in manual intervention when marking a document as failed, Metamaze will send these codes and messages to your service.

![](https://382487820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LuWehHupT-Y9kwe-PJb%2Fuploads%2Fd68K2DK39VJGuH4ehXlI%2Fimage.png?alt=media\&token=14dc7bdf-1162-4199-b3f7-3db8d6a6fcdb)
