Response::HTTP_UNPROCESSABLE_ENTITY laravel code example Example: laravel return response view return response()->view('your_view', compact('variableName'));