[FEATURE] Add http statusCode error handling in http client.