From 8af016645fee5c0b22e69d46de9b3401c1bc82d3 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 17 Apr 2018 09:36:08 +0200 Subject: lib/ new --- lib/http.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/http.php (limited to 'lib/http.php') diff --git a/lib/http.php b/lib/http.php new file mode 100644 index 0000000..5fe87dc --- /dev/null +++ b/lib/http.php @@ -0,0 +1,18 @@ +\n" . $extra_message; + die(); +}; + +function die_500($message) { + throw_http_error(500, "Internal Server Error", $message); +}; -- cgit v1.2.3-70-g09d2