Almost done, finish line!

Took 45 minutes
This commit is contained in:
2020-10-02 17:07:56 +02:00
parent 8559e3388d
commit 9b1b2ea0c8
7 changed files with 112 additions and 30 deletions

View File

@ -36,6 +36,7 @@ class Apitemplate
902 => 'Answer-cannot-be-set',
903 => 'wrong-parameters-given',
905 => 'User-is-not-owner',
906 => 'Question-does-not-exist',
);
$text = isset( $codes[$a_code] ) ? $codes[$a_code] : "Error";
header("HTTP/1.1 $a_code $text" );