qpilot_remote_request_response_errors (action)
(src/QPilot/Client.php) Used to fire custom functions after the HTTP Request is made to the QPilot API. The action passes the details of the HTTP Response Error(s) as parameters (array). This includes the $call_args, (error) $code, $response (response message), & (errors) $response_data->messages->errors.
Code
$this->do_action( 'qpilot_remote_request_response_errors', array( 'callArgs' => $call_args, 'code' => $code, 'response_error' => $response['response']['message'], 'errors' => $response_data->messages->errors ));