Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7122936
D2460.id8768.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
D2460.id8768.diff
View Options
diff --git a/swh/web/api/views/vault.py b/swh/web/api/views/vault.py
--- a/swh/web/api/views/vault.py
+++ b/swh/web/api/views/vault.py
@@ -82,7 +82,9 @@
:statuscode 200: no error
:statuscode 400: an invalid directory identifier has been provided
- :statuscode 404: requested directory can not be found in the archive
+ :statuscode 404: requested directory did not receive any cooking
+ request yet (in case of GET) or can not be found in the archive
+ (in case of POST)
"""
_, obj_id = query.parse_hash_with_algorithms_or_throws(
dir_id, ['sha1'], 'Only sha1_git is supported.')
@@ -115,7 +117,9 @@
:statuscode 200: no error
:statuscode 400: an invalid directory identifier has been provided
- :statuscode 404: requested directory can not be found in the archive
+ :statuscode 404: requested directory did not receive any cooking
+ request yet (in case of GET) or can not be found in the archive
+ (in case of POST)
"""
_, obj_id = query.parse_hash_with_algorithms_or_throws(
dir_id, ['sha1'], 'Only sha1_git is supported.')
@@ -179,7 +183,9 @@
:statuscode 200: no error
:statuscode 400: an invalid revision identifier has been provided
- :statuscode 404: requested revision can not be found in the archive
+ :statuscode 404: requested directory did not receive any cooking
+ request yet (in case of GET) or can not be found in the archive
+ (in case of POST)
"""
_, obj_id = query.parse_hash_with_algorithms_or_throws(
rev_id, ['sha1'], 'Only sha1_git is supported.')
@@ -212,7 +218,9 @@
:statuscode 200: no error
:statuscode 400: an invalid revision identifier has been provided
- :statuscode 404: requested revision can not be found in the archive
+ :statuscode 404: requested directory did not receive any cooking
+ request yet (in case of GET) or can not be found in the archive
+ (in case of POST)
"""
_, obj_id = query.parse_hash_with_algorithms_or_throws(
rev_id, ['sha1'], 'Only sha1_git is supported.')
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 17, 12:31 PM (3 d, 5 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3221161
Attached To
D2460: Fix documentation of meaning of 404 on vault endpoints.
Event Timeline
Log In to Comment