Add documentation for errors