From e48c1a67309edb11b03da5c3fe30696e2cf62fa6 Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Sat, 27 Sep 2014 16:34:43 +1000 Subject: [PATCH] Use more accurate HTTP status code for device add --- 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 cde279b38e..0215665dd1 100644 --- a/html/includes/api_functions.inc.php +++ b/html/includes/api_functions.inc.php @@ -368,7 +368,7 @@ function add_device() { $message = "You haven't specified an SNMP version to use"; } - $code = 200; + $code = 201; if(empty($message)) { require_once("../includes/functions.php");