@wip Add docs for errors