mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 14:50:39 -04:00
Update framework standards
This commit is contained in:
parent
232e056299
commit
09a91a998e
17 changed files with 282 additions and 98 deletions
26
lib/Enums/HttpCode.php
Normal file
26
lib/Enums/HttpCode.php
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?
|
||||
namespace Enums;
|
||||
|
||||
enum HttpCode: int{
|
||||
case Ok = 200;
|
||||
case Created = 201;
|
||||
case Accepted = 202;
|
||||
case NoContent = 204;
|
||||
|
||||
case MovedPermanently = 301; // Permanent redirect
|
||||
case Found = 302; // Temporary redirect
|
||||
case SeeOther = 303;
|
||||
|
||||
case BadRequest = 400;
|
||||
case Unauthorized = 401;
|
||||
case PaymentRequired = 402;
|
||||
case Forbidden = 403;
|
||||
case NotFound = 404;
|
||||
case MethodNotAllowed = 405;
|
||||
case Conflict = 409;
|
||||
case Gone = 410;
|
||||
case UnprocessableContent = 422;
|
||||
|
||||
case InternalServerError = 500;
|
||||
case ServiceUnavailable = 503;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue