Switch to using errbit for error handling.
Merge pull request #111 from alphagov/switch_to_errbit

Switch to using errbit for error handling.