Commit 06cefd48 authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

added test code.

parent 937e9832
......@@ -5,12 +5,20 @@
header('Content-Type: application/json');
if (isset($_GET['provoke_500'])) {
http_response_code(500);
echo json_encode(['message' => 'provoked 500 status code']);
exit(0);
}
if (!isset($_GET['query'])) {
http_response_code(400);
echo json_encode(['message' => 'wrong arguments']);
exit(0);
}
if (!isset($_GET['sip'])) {
http_response_code(400);
echo json_encode(['message' => 'no sip']);
exit(0);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment