lib/quirky-api/response/errors.rb
def respond_unauthorized(message = nil)
        if message
          error_response(message, 401)
        else
          head :unauthorized
        end
        @performed_render = true
      end
# Returns 401 (Unauthorized).  If +message+ is blank, will return an
# +Unauthorized+ header instead of outputting anything.
#
# @param message [String] If applicable, a message describing the problem.
#
Returns 401 (Unauthorized).  If +message+ is blank, will return an
+Unauthorized+ header instead of outputting anything.
Returns 401 ( Unauthorized ) . If + message + is blank will return an + Unauthorized + header instead of outputting anything .
def respond_unauthorized(message = nil)
        if message
          error_response(message, 401)
        else
          head :unauthorized
        end
        @performed_render = true
      end
def respond_unauthorized ( message = nil ) if message error_response ( message , 401 ) else head :unauthorized end @performed_render = true end
Returns 401 (Unauthorized).
Returns 401 ( Unauthorized ) .
message
If applicable, a message describing the problem.
If applicable a message describing the problem .