X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fphp-collection%2Fgraph.php;fp=contrib%2Fphp-collection%2Fgraph.php;h=17749e06926fd269da3c3b88c7a1f51582e08784;hb=177f4357d29d8a488686fd92da3acd5ef2d9b10b;hp=e53657681a09c59f1bb516fe75582db05cc7b71b;hpb=26f1a6f7ca9b20cb917ec8b3df7affde2da8eac1;p=collectd.git diff --git a/contrib/php-collection/graph.php b/contrib/php-collection/graph.php index e5365768..17749e06 100644 --- a/contrib/php-collection/graph.php +++ b/contrib/php-collection/graph.php @@ -112,6 +112,13 @@ function error400($title, $msg) { return error(400, "Bad request", $title, $msg); } +/** + * Incomplete / invalid request + */ +function error500($title, $msg) { + return error(500, "Internal error", $title, $msg); +} + // Process input arguments $host = read_var('host', $_GET, null); if (is_null($host))