Simplifies status normalization in xhr transport. Local file test modified for clarity.