convert 500 and random 4xx 3xx response to 200 so ajax can properly handle them