Use HTTP code enums instead of ints

This commit is contained in:
Alex Cabal 2024-11-20 14:52:05 -06:00
parent 3f822b85c3
commit 3050ab7219
28 changed files with 56 additions and 56 deletions

View file

@ -56,7 +56,7 @@ catch(Exceptions\EbookNotFoundException){
$ebook = Ebook::GetByIdentifierStartingWith($identifier);
// Found, redirect.
http_response_code(301);
http_response_code(Enums\HttpCode::MovedPermanently->value);
header('Location: ' . $ebook->Url);
exit();
}