Be more explicit about error conditions in API docs