*Fix API bug.

This commit is contained in:
songchenxuan
2022-03-09 14:41:01 +08:00
parent d425337fd9
commit 5118abeaf9
4 changed files with 17 additions and 5 deletions

View File

@@ -246,6 +246,18 @@ class baseEntry
$this->send($code, $response);
}
/**
* Send 400 response.
*
* @param string message
* @access public
* @return void
*/
public function send400($message = 'error')
{
$this->sendError(400, $message);
}
/**
* Send 404 response.
*