Server unavailable and elegantly handling ECONNREFUSED errors


#1

Supposing that the server is temporarily down and ECONNREFUSED errors are thrown, I would like to be able to handle this more elegantly and make known to the end user (also better for trouble-shooting purposes).

Observing the ember console I see this:

connect ECONNREFUSED
Error: connect ECONNREFUSED

I tried catching in the my ApplicationRoute actions handler but this is not triggered for one reason or another.

Any ideas how to deal with such situations would be greatly appreciated.