11<?php 
2+ 
23namespace  Codeception \Util ;
34
45/** 
2021 */ 
2122class  HttpCode
2223{
24+     // const CONTINUE = 100; 
2325    const  SWITCHING_PROTOCOLS  = 101 ;
2426    const  PROCESSING  = 102 ;            // RFC2518 
27+     const  EARLY_HINTS  = 103 ;           // RFC8297 
2528    const  OK  = 200 ;
2629    const  CREATED  = 201 ;
2730    const  ACCEPTED  = 202 ;
@@ -60,6 +63,7 @@ class HttpCode
6063    const  REQUESTED_RANGE_NOT_SATISFIABLE  = 416 ;
6164    const  EXPECTATION_FAILED  = 417 ;
6265    const  I_AM_A_TEAPOT  = 418 ;                                               // RFC2324 
66+     const  MISDIRECTED_REQUEST  = 421 ;                                         // RFC7540 
6367    const  UNPROCESSABLE_ENTITY  = 422 ;                                        // RFC4918 
6468    const  LOCKED  = 423 ;                                                      // RFC4918 
6569    const  FAILED_DEPENDENCY  = 424 ;                                           // RFC4918 
@@ -68,6 +72,7 @@ class HttpCode
6872    const  PRECONDITION_REQUIRED  = 428 ;                                       // RFC6585 
6973    const  TOO_MANY_REQUESTS  = 429 ;                                           // RFC6585 
7074    const  REQUEST_HEADER_FIELDS_TOO_LARGE  = 431 ;                             // RFC6585 
75+     const  UNAVAILABLE_FOR_LEGAL_REASONS  = 451 ;
7176    const  INTERNAL_SERVER_ERROR  = 500 ;
7277    const  NOT_IMPLEMENTED  = 501 ;
7378    const  BAD_GATEWAY  = 502 ;
@@ -83,6 +88,7 @@ class HttpCode
8388    private  static  $ codes
8489     100  => 'Continue ' ,
8590     102  => 'Processing ' ,
91+      103  => 'Early Hints ' ,
8692     200  => 'OK ' ,
8793     201  => 'Created ' ,
8894     202  => 'Accepted ' ,
@@ -99,6 +105,7 @@ class HttpCode
99105     303  => 'See Other ' ,
100106     304  => 'Not Modified ' ,
101107     305  => 'Use Proxy ' ,
108+      306  => 'Reserved ' ,
102109     307  => 'Temporary Redirect ' ,
103110     308  => 'Permanent Redirect ' ,
104111     400  => 'Bad Request ' ,
@@ -119,14 +126,17 @@ class HttpCode
119126     415  => 'Unsupported Media Type ' ,
120127     416  => 'Requested Range Not Satisfiable ' ,
121128     417  => 'Expectation Failed ' ,
129+      418  => 'Unassigned ' ,
122130     421  => 'Misdirected Request ' ,
123131     422  => 'Unprocessable Entity ' ,
124132     423  => 'Locked ' ,
125133     424  => 'Failed Dependency ' ,
134+      425  => 'Too Early ' ,
126135     426  => 'Upgrade Required ' ,
127136     428  => 'Precondition Required ' ,
128137     429  => 'Too Many Requests ' ,
129138     431  => 'Request Header Fields Too Large ' ,
139+      451  => 'Unavailable For Legal Reasons ' ,
130140     500  => 'Internal Server Error ' ,
131141     501  => 'Not Implemented ' ,
132142     502  => 'Bad Gateway ' ,
0 commit comments