Is it possible to return specific errors from the callback handler?

Hi
I am implementing a callback handler in Java. I see from the documentation that : “The document storage service must return {“error”: 0}”.
This is fine but is it possible to return a specific error and error message for display in the document editor?

As an example, imagine if the document storage service ran out of storage space. In this situation it would be preferable for the document edtior to report something like “The document could not be saved as there is no space left in your repository”.

Kind Regards
Andy

Hello @brads0105,
Replying with anything but "error":0 will result in the default Document could not be saved error.
https://api.onlyoffice.com/docs/docs-api/more-information/troubleshooting/#could-not-be-saved
Customization of the error text is not available.

1 Like

Hi Carl
Thanks for the info. That seems a shame since the json response could include lots of supplementary detail.
Thanks again
Andy

1 Like