function checkResponse(response) {
			if (response.data[_messagesKey] && response.data[_messagesKey].length > 0) {
				growl.addServerMessages(response.data[_messagesKey]);
			}
		}
$http interceptor that can be added to array of $http interceptors during config phase of application
via $httpProvider.responseInterceptors.push(...)