diff --git a/app/controllers/api/v1/base_controller.rb b/app/controllers/api/v1/base_controller.rb index a3ed9c1..e2e90ee 100644 --- a/app/controllers/api/v1/base_controller.rb +++ b/app/controllers/api/v1/base_controller.rb @@ -11,7 +11,7 @@ class Api::V1::BaseController < ActionController::Base if @current_user.nil? msg = "Username/Password/Token invalid" - render :json => {:error => msg }, :status => 403 and return + render :json => {:error => msg }, :status => 401 and return end else authenticate_user!