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

Handles unexpected responses from KeyAuth addCredentials method #5

Merged
merged 2 commits into from
Nov 10, 2017

Conversation

dvilela
Copy link
Contributor

@dvilela dvilela commented Nov 8, 2017

The Services are not handling unexpected status codes. E.g., when we create a credential that already exists, Kong responds with 409 Conflict, but the service ignores the status code and returns null.

The idea is to throw an exception with the status code and HTTP message.

@vaibhav-sinha vaibhav-sinha merged commit b8480f9 into vaibhav-sinha:master Nov 10, 2017
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