Skip to content

Improve error condition communication from backend#1780

Merged
rashidkpc merged 3 commits intoelastic:masterfrom
rashidkpc:fix/backend-down-message
Nov 5, 2014
Merged

Improve error condition communication from backend#1780
rashidkpc merged 3 commits intoelastic:masterfrom
rashidkpc:fix/backend-down-message

Conversation

@rashidkpc
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@simianhacker any issues with how this was done?

@simianhacker
Copy link
Copy Markdown
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