dot-handleResponse function

Default request response handler.