dot-handleResponseOrCallback function

Process response with default handler or the provided one