pass xhr to report_500_response so it can be overrided and do different actions depending on xhr status