Add typing and clean up code for reviewboard.hostingsvcs.errors.
Review Request #12985 — Created April 24, 2023 and submitted
This updates the error code for hosting services to include type hints
and information on attributes, making it easier and safer to work with
It also adds some missing documentation and removes some unneeded
Type checker and unit tests pass.
Used some of these attributes in code I was working on.