-
Notifications
You must be signed in to change notification settings - Fork 296
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
The Resource Server currently returns non-standard HTTP status codes for three endpoints:
PATCH /resource/api/vulnerabilities/{externalId}returns201 CreatedDELETE /resource/api/packages/{id}returns200 OKDELETE /resource/api/licenses/{id}returns200 OK
This is inconsistent with common REST semantics and expected API consumer behavior.
Current Behavior
- Updating an existing vulnerability via
PATCHreturns201 Created. - Deleting a package returns
200 OK. - Deleting a license returns
200 OK.
Expected Behavior
PATCH /resource/api/vulnerabilities/{externalId}should return200 OK(or204 No Contentif response body is omitted).DELETE /resource/api/packages/{id}should return204 No Contenton successful deletion.DELETE /resource/api/licenses/{id}should return204 No Contenton successful deletion.
Reproduction
Using UI + browser Network tab:
- Update a vulnerability from Vulnerabilities UI and inspect
PATCH /resource/api/vulnerabilities/{externalId}. - Delete a package from Packages UI and inspect
DELETE /resource/api/packages/{id}. - Delete a license from Licenses UI and inspect
DELETE /resource/api/licenses/{id}.
Proposed Fix
- Return
200 OKfor vulnerability update. - Return
204 No Contentfor successful package/license deletion. - Keep existing error/status behavior for conflict/denied cases unchanged.
Screenshots / Evidence

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working