Fixed for non-json API response for 500s