The response function creates a response instance or obtains an instance of the response factory:
<?php return response('Hello World', 200, $headers);

return response()->json(['foo' => 'bar'], 200, $headers);
<?php     {

        $post->delete();



        return response()->noContent();

    }

}
<?php     {

        $certificate->delete();



        return response()->noContent();

    }

}
<?php     {

        $certificate->delete();



        return response()->noContent();

    }

}
<?php     {

        $certificateType->delete();



        return response()->noContent();

    }

}
<?php     {

        $tag->delete();



        return response()->noContent();

    }

}
<?php     public function store(PostStoreRequest $request)

    {

        return response()->noContent();

    }
<?php     public function error(Request $request)

    {

        return response()->noContent(400);

    }

}
<?php     {

        $post->delete();



        return response()->noContent();

    }

}