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

Use 404 when Target Not Found #357

Merged
merged 3 commits into from
Dec 11, 2020
Merged

Conversation

vic-ma
Copy link
Contributor

@vic-ma vic-ma commented Dec 11, 2020

Fixes #353

For most handlers, adding a check for target-not-found exceptions in the abstract handler class (V1 and V2) was enough.

For TargetReportGetHandler, since the exception thrown is different, I made a change in the handler itself. I had to change some of the subprocess classes to public to do this, though I'm not sure if there's a way to avoid that.

Some unrelated small fixes to HTTP API docs.

@vic-ma vic-ma requested a review from andrewazores December 11, 2020 16:02
@andrewazores andrewazores merged commit ecb1fab into cryostatio:main Dec 11, 2020
@vic-ma vic-ma deleted the target-not-found branch December 11, 2020 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Status Code for Target-Not-Found Response Doesn't Match HTTP API Doc
2 participants