doc: add documentation for errors