Add more error codes and message, reflow some doc comments.

This is actually a bug in the code. The err, if it's returned from the m.db.View above, will already be a managerError. You can return nil, err here