Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP200 when deleting a non-existing template #3784

Open
sven-dmlr opened this issue Jan 13, 2025 · 0 comments
Open

HTTP200 when deleting a non-existing template #3784

sven-dmlr opened this issue Jan 13, 2025 · 0 comments

Comments

@sven-dmlr
Copy link
Member

Situation

When deleting a template which does not exist, the api returns HTTP 200.

> sechub-api template_delete non-existing-template
...
HTTP/1.1 200

Wanted

HTTP 404 along with an explainig JSON message. E.g.:

{
  "status": 404,
  "error": "Not Found",
  "message": "Template non-existing-template does not exist, so cannot be deleted",
  "details": [],
  "timeStamp": "Wed Jan 08 10:16:58 GMT 2025"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant