attachment-server/phplib/libcustomerrorgen.php

33 lines
869 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
function gen_error_400($reason="") {
http_response_code(400);
echo "bad request: ";
echo $reason;
echo "\n";
echo "(,,#゚Д゚)你对这个小程序做了什么哇...";
echo "\n";
exit;
}
function gen_error_404($reason="") {
http_response_code(404);
echo $reason;
echo "\n";
echo "(⊙.⊙)这...这不对吧...";
echo "\n";
exit;
}
function gen_error_500($reason="") {
http_response_code(500);
echo "internal error: ";
echo $reason;
echo "\n";
echo "Σ(っ °Д °;)っ哇啊!服务器居然出错惹...呜呜...╥﹏╥";
echo "\n";
echo "请刷新重试几次还是不行的话请从群里找到ly65喵可能叫 流萤#65 或者 lhy6305 之类的)私聊进行敲打,附上你的请求参数和上面的报错信息,谢谢喵";
echo "\n";
exit;
}