# encoding: utf-8

class AuthorsController < ActionController::Base
  include Rails.application.routes.url_helpers

  def index
    render :nothing => true
  end

  def restricted
    render :nothing => true, :status => 401
  end

  def disallowed
    render :nothing => true, :status => 403
  end
end

# encoding: utf-8

class AuthorsController < ActionController::Base
  include Rails.application.routes.url_helpers

  def index
    head :ok
  end

  def restricted
    head :unauthorized
  end

  def disallowed
    head :forbidden
  end
end

Use head :ok instead of render: nothing
Use head :ok instead of render: nothing
