protected function handleResponseCallback($content, Closure $callback = null)
    {
        if ($callback instanceof Closure) {
            $content = call_user_func($callback, $content);
        }

        if (false === $content) {
            return $this->abort(404);
        } elseif (is_null($content)) {
            return new IlluminateResponse($content, 200);
        }

        return $content;
    }