Use WP_Error and get the response field from the http response array.