diff --git a/source/includes/classes/base.class.php b/source/includes/classes/base.class.php index 25e0118..2f1c282 100644 --- a/source/includes/classes/base.class.php +++ b/source/includes/classes/base.class.php @@ -117,6 +117,11 @@ public function output_payload($data) { } public function output_error($code) { + // output the response code + if(array_key_exists((int)$code, $this->errors)) { + http_response_code((int)$code); + } + if($this->version == "1.0") { $payload = array( "Error" => $this->errors[$code],