Better github request error handling.