#488 Improved error handling in the request_token and authorization process