[#5434] skip StatusCodeRedirect middleware so tasks don't get run a 2nd time with url /error/document