1
0
Fork 0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-03-23 01:58:21 +03:00
rss-bridge/lib/error.php

13 lines
231 B
PHP
Raw Normal View History

<?php
function returnError($message, $code){
2016-11-09 19:10:40 +01:00
throw new \HttpException($message, $code);
}
function returnClientError($message){
2016-11-09 19:10:40 +01:00
returnError($message, 400);
}
function returnServerError($message){
2016-11-09 19:10:40 +01:00
returnError($message, 500);
}