added handler for error status in route redirect