PHP Classes

File: infrastructure/core/enums/StatusCode.php

Recommend this page to a friend!
  Classes of Maicon gonçalez   Potato Service   infrastructure/core/enums/StatusCode.php   Download  
File: infrastructure/core/enums/StatusCode.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Potato Service
Framework that extracts route details from classes
Author: By
Last change:
Date: 1 year ago
Size: 1,557 bytes
 

Contents

Class file image Download
<?php
namespace infrastructure\core\enums;


enum StatusCode: int {

    case
OK = 200;
    case
Created = 201;
    case
Accepted = 202;
    case
NonAuthoritativeInformation = 203;
    case
NoContent = 204;
    case
ResetContent = 205;
    case
PartialContent = 206;

    case
MultipleChoices = 300;
    case
MovedPermanently = 301;
    case
Found = 302;
    case
SeeOther = 303;
    case
NotModified = 304;
    case
TemporaryRedirect = 307;
    case
PermanentRedirect = 308;

    case
BadRequest = 400;
    case
Unauthorized = 401;
    case
PaymentRequired = 402;
    case
Forbidden = 403;
    case
NotFound = 404;
    case
MethodNotAllowed = 405;
    case
NotAcceptable = 406;
    case
ProxyAuthenticationRequired = 407;
    case
RequestTimeout = 408;
    case
Conflict = 409;
    case
Gone = 410;
    case
LengthRequired = 411;
    case
PreconditionFailed = 412;
    case
RequestEntityTooLarge = 413;
    case
RequestURITooLong = 414;
    case
UnsupportedMediaType = 415;
    case
RequestedRangeNotSatisfiable = 416;
    case
ExpectationFailed = 417;
    case
UpgradeRequired = 426;
    case
PreconditionRequired = 428;
    case
TooManyRequests = 429;
    case
RequestHeaderFieldsTooLarge = 431;
    case
UnavailableForLegalReasons = 451;

    case
InternalServerError = 500;
    case
NotImplemented = 501;
    case
BadGateway = 502;
    case
ServiceUnavailable = 503;
    case
GatewayTimeout = 504;
    case
HTTPVersionNotSupported = 505;
    case
VariantAlsoNegotiates = 506;
    case
NotExtended = 510;
    case
NetworkAuthenticationRequired = 511;

}