Fix for issue #78

Pull request for issue #78. Handles empty error messages from the server on 4xx..500 errors.