Skip to content

Commit e6a65a3

Browse files
committed
addressing @wasade comment
1 parent 8ef50c1 commit e6a65a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

qiita_pet/handlers/download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get(self, filepath_id):
2020

2121
if not validate_filepath_access_by_user(self.current_user, fid):
2222
raise HTTPError(
23-
404, "%s doesn't have access to "
23+
403, "%s doesn't have access to "
2424
"filepath_id: %s" % (self.current_user.email, str(fid)))
2525

2626
relpath = filepath_id_to_rel_path(fid)

qiita_pet/test/test_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_download(self):
4242

4343
# failure
4444
response = self.get('/download/1000')
45-
self.assertEqual(response.code, 404)
45+
self.assertEqual(response.code, 403)
4646

4747

4848
class TestDownloadStudyBIOMSHandler(TestHandlerBase):

0 commit comments

Comments
 (0)