replaced status 404 with 401 for unauthorized user
replaced download path to support charging
added download handler