1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 18:04:08 +02:00

proper error response for not found demos

This commit is contained in:
Robin Appelman 2020-12-09 22:47:28 +01:00
commit 202d11fcc9
7 changed files with 61 additions and 9 deletions

View file

@ -22,4 +22,7 @@ declare(strict_types=1);
namespace Demostf\API\Error;
class InvalidKeyException extends \Exception {
public function __construct(string $message) {
parent::__construct($message, 401);
}
}