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

Switch to using errbit for error handling