summaryrefslogtreecommitdiffstats
path: root/library/Icinga/Exception/Http/HttpExceptionInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'library/Icinga/Exception/Http/HttpExceptionInterface.php')
-rw-r--r--library/Icinga/Exception/Http/HttpExceptionInterface.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/library/Icinga/Exception/Http/HttpExceptionInterface.php b/library/Icinga/Exception/Http/HttpExceptionInterface.php
new file mode 100644
index 0000000..c5e0cc7
--- /dev/null
+++ b/library/Icinga/Exception/Http/HttpExceptionInterface.php
@@ -0,0 +1,21 @@
+<?php
+/* Icinga Web 2 | (c) 2017 Icinga Development Team | GPLv2+ */
+
+namespace Icinga\Exception\Http;
+
+interface HttpExceptionInterface
+{
+ /**
+ * Return this exception's HTTP status code
+ *
+ * @return int
+ */
+ public function getStatusCode();
+
+ /**
+ * Return this exception's HTTP response headers
+ *
+ * @return array An array where each key is a header name and the value its value
+ */
+ public function getHeaders();
+}