Commit 79beaf30 authored by Bastien Durel's avatar Bastien Durel
Browse files

return error with http_response_code()

parent ba5007f3
......@@ -64,7 +64,7 @@ if ($validator->isValid()) {
$stmt->bindParam(':ip', $ip);
if (!$stmt->execute()) {
$info = $stmt->errorInfo();
header('HTTP/1.1 409 Conflict');
header('Content-Type: text/plain');
die ("${info[2]}\n");
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