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:
parent
6ccf387d1e
commit
202d11fcc9
7 changed files with 61 additions and 9 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue