fix http status for "not logged in" response
authorTom Clegg <tom@clinicalfuture.com>
Wed, 19 Jun 2013 16:37:29 +0000 (12:37 -0400)
committerTom Clegg <tom@clinicalfuture.com>
Wed, 19 Jun 2013 16:37:29 +0000 (12:37 -0400)
services/api/app/controllers/application_controller.rb

index a47ccf78ff5dba0d5ead7469724211c9fae13b93..65b1f5585f43094f0d59b82d794d4023b3fc2500 100644 (file)
@@ -213,7 +213,7 @@ class ApplicationController < ActionController::Base
           redirect_to '/auth/joshid'
         }
         format.json {
-          render :json => { errors: ['Not logged in'] }.to_json
+          render :json => { errors: ['Not logged in'] }.to_json, status: 401
         }
       end
     end