diff --git a/app/controllers/projects/hooks_controller.rb b/app/controllers/projects/hooks_controller.rb
index 8c52aa748ae276b9b5f48d27b406214be6c66533..245c674f6509f3c14703dc99988fe811e106621f 100644
--- a/app/controllers/projects/hooks_controller.rb
+++ b/app/controllers/projects/hooks_controller.rb
@@ -6,10 +6,6 @@ class Projects::HooksController < Projects::ApplicationController
 
   layout "project_settings"
 
-  def index
-    redirect_to namespace_project_settings_integrations_path(@project.namespace, @project)
-  end
-
   def create
     @hook = @project.hooks.new(hook_params)
     @hook.save
@@ -18,7 +14,8 @@ class Projects::HooksController < Projects::ApplicationController
       redirect_to namespace_project_settings_integrations_path(@project.namespace, @project)
     else
       @hooks = @project.hooks.select(&:persisted?)
-      render :index
+      flash[:alert] = @hook.errors.full_messages.join.html_safe
+      redirect_to namespace_project_settings_integrations_path(@project.namespace, @project)
     end
   end
 
diff --git a/app/controllers/projects/services_controller.rb b/app/controllers/projects/services_controller.rb
index b4c40c6bf1423b9ba1c53321ebab7327b5879af1..17cb1d5be242b4b4dfe7fcaa1fd5f80db7d107a9 100644
--- a/app/controllers/projects/services_controller.rb
+++ b/app/controllers/projects/services_controller.rb
@@ -9,10 +9,6 @@ class Projects::ServicesController < Projects::ApplicationController
 
   layout "project_settings"
 
-  def index
-    redirect_to namespace_project_settings_integrations_path(@project.namespace, @project)
-  end
-
   def edit
   end