diff --git a/bitstreams.md b/bitstreams.md index 9c964fee..18f144f4 100644 --- a/bitstreams.md +++ b/bitstreams.md @@ -33,6 +33,12 @@ Exposed links: * bundle: link to the bundle, not embedded * thumbnail: the thumbnail of the bitstream +Status codes: +* 200 OK - if the bitstream is found and its metadata is visible to the current user or the anonymous user +* 401 Unauthorized - if the bitstream exists, but you are not authenticated and its metadata is not visible to anonymous users +* 403 Forbidden - if the bitstream exists, but you are not logged in with sufficient permissions to see its metadata +* 404 Not Found - if the identifier is malformed, the bitstream doesn't exist, or the UUID belongs to a different type of DSpace object + ## Patch operations Bitstream metadata can be modified as described in [Modifying metadata via Patch](metadata-patch.md). @@ -255,4 +261,4 @@ The `PATCH` request body includes the UUIDs of the bitstreams to be deleted. "path": "/bitstreams/5a3f7c7a-d3df-419c-8a2-f00ede62c60a" } ] -``` +``` \ No newline at end of file diff --git a/items.md b/items.md index abfc4e9a..39b501d5 100644 --- a/items.md +++ b/items.md @@ -93,9 +93,9 @@ Exposed links: Status codes: * 200 OK - if the item is found and it is visible to the current user or the anonymous user. Withdrawn items are returned -* 401 Unauthorized - if you are not authenticated and the item is not visible to anonymous users -* 403 Forbidden - if you are not logged in with sufficient permissions. Please note that withdrawn items are visible to everyone without any metadata details -* 404 Not found - if the item doesn't exist +* 401 Unauthorized - if the item exists, but you are not authenticated and it is not visible to anonymous users +* 403 Forbidden - if the item exists, but you are not logged in with sufficient permissions. Please note that withdrawn items are visible to everyone without any metadata details +* 404 Not Found - if the identifier is malformed, the item doesn't exist, or the UUID belongs to a different type of DSpace object ### Withdrawn item A withdrawn item is a normal item that has been retired from the repository using a patch operation as described below. Once withdrawn the response will show an empty metadata section to everyone except than administrators.