Requests error handling added.