added missing statusCode for redirect method