#10 refactoring error message method to be a little more DRY
#10 setting a 500 error response code on any kind of connection error