When scheduler process the payment and it's failed due to some API request error it stores the error message into WorkPeriodPayment.statusDetails.errorMessage.
But at the moment it store there there a common name of error like Bad Reuquest, but it should store the error message which is returned in the error response: { message: }.
And fallback to common error name like Bad Reuest only is there is no message in the error response.