Better error codes

Do you like this syntax? I'd have done `errors.TooManyRequests` (the idea being that `errors` is a kind of namespace).