Title: wp-includes/php-ai-client/src/Providers/Http/Util/ResponseUtil.php | Developer.WordPress.org

---

# File: wp-includes/php-ai-client/src/Providers/Http/Util/ResponseUtil.php

 * class[ResponseUtil](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-util-responseutil/)
 * Class with static utility methods to process HTTP responses.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-util-responseutil/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-util-responseutil/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/Util/ResponseUtil.php:15](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/Util/ResponseUtil.php#L15-L55)
 * method[ResponseUtil::throwIfNotSuccessful()](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-util-responseutil/throwifnotsuccessful/)
 * Throws an appropriate exception if the given response is not successful.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-util-responseutil/throwifnotsuccessful/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wordpress-aiclient-providers-http-util-responseutil/throwifnotsuccessful/#uses)
   | Source: [wp-includes/php-ai-client/src/Providers/Http/Util/ResponseUtil.php:35](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/php-ai-client/src/Providers/Http/Util/ResponseUtil.php#L35-L54)