(This is somewhat related to this question)
Is there a way to parse responses to webhooks if the status code is not 200?
Right now, it appears that non-200 response status codes result in the webhook returning a string, like this
Response body: {"statusCode":400,"error":"invalid_grant","message":"Invalid refresh token"}
Request to external system failed and returned unsuccessful response code: 400
Instead, is there a way to get this JSON in a structured form:
{
"statusCode": 400,
"error":"invalid_grant",
"message":"Invalid refresh token"
}