From cd8b2299df702b9f70a8a31ccd2289d139b1aa82 Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Tue, 7 Oct 2014 23:53:26 +0000 Subject: [PATCH] Updated authToken response code to be 401 --- html/includes/api_functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/api_functions.inc.php b/html/includes/api_functions.inc.php index f9829b2a1..f04106158 100644 --- a/html/includes/api_functions.inc.php +++ b/html/includes/api_functions.inc.php @@ -176,7 +176,7 @@ function authToken(\Slim\Route $route) if($authenticated === false) { - $app->response->setStatus(403); + $app->response->setStatus(401); $output = array("status" => "error", "message" => "API Token is missing or invalid; please supply a valid token"); echo _json_encode($output); $app->stop();