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

Improve error condition communication from backend #1780

Merged
merged 3 commits into from
Nov 5, 2014

Conversation

rashidkpc
Copy link
Contributor

Previously if the backend was unable to connect to Elasticsearch it would simply throw an "Internal Server Error". This change sets the HTTP status to 502 (bad gateway) or 504 (gateway timeout) depending on Elasticsearch's availability. It also communicates that in the fatal message.

@rashidkpc
Copy link
Contributor Author

@simianhacker any issues with how this was done?

@simianhacker
Copy link
Member

LGTM

rashidkpc added a commit that referenced this pull request Nov 5, 2014
Improve error condition communication from backend
@rashidkpc rashidkpc merged commit 0bb9efc into elastic:master Nov 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants