How to handle response code 502 in JS (

Currently response code 502 is not handled in Due to this async call fails silently when 502 is received as a response.

Is there a way we can prompt user message when this occurs? or we can send pull request to handle 502 response code.

Any suggestions on how to handle this in PR.

1 Like

related to the above… is there any way to expose the xhr object in frappe request.js… say in the always callback. Or is there some other way to read the response headers ?