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

Admin API: Return 404 on call to GET /certificates/uuid #3148

Closed
wants to merge 1 commit into from
Closed

Admin API: Return 404 on call to GET /certificates/uuid #3148

wants to merge 1 commit into from

Conversation

vdesjardins
Copy link
Contributor

When querying the Admin API for a specific certificate using a UUID that doesn't exist the result returned is a 500 status code.

This patch returns a 404 instead.

thibaultcha pushed a commit that referenced this pull request Jan 20, 2018
We now properly return HTTP 404 Not Found when the certificate's id
specified in the URL is non-existing.

From #3148

Signed-off-by: Thibault Charbonnier <[email protected]>
@thibaultcha
Copy link
Member

Nice catch, thank you! Manually merged into master with a few minor modifications regarding the tests organization (tests can be nested under a single describe block).

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.

2 participants