Add more specific errors

Token used recently and invalid API key are now being handled with
specific errors.