You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When deleting an asset or a file in an asset that does not exist, the api returns HTTP 200.
> sechub-api asset_delete non-existing-asset
Asset "non-existing-asset" will be deleted including its files. This cannot be undone.
Are you sure? (y/n) y
HTTP/1.1 200
> sechub-api asset_file_delete test-1 this-file-does-not-exist.zip
...
HTTP/1.1 200
Wanted
HTTP 404 along with an explainig JSON message. E.g.:
{
"status": 404,
"error": "Not Found",
"message": "Asset non-existing-asset does not exist, so cannot be deleted",
"details": [],
"timeStamp": "Wed Jan 08 10:16:58 GMT 2025"
}
and
{
"status": 404,
"error": "Not Found",
"message": "File this-file-does-not-exist.zip does not exist in asset test-1, so cannot be deleted",
"details": [],
"timeStamp": "Wed Jan 08 10:16:58 GMT 2025"
}
The text was updated successfully, but these errors were encountered:
Situation
When deleting an asset or a file in an asset that does not exist, the api returns HTTP 200.
Wanted
HTTP 404 along with an explainig JSON message. E.g.:
and
The text was updated successfully, but these errors were encountered: