Skip to content

Commit 5554d7b

Browse files
Merge pull request #10 from Lcfvs/master
Adds "Early Hints" & "Too Early"
2 parents 019e6a3 + 551860f commit 5554d7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/StatusCodeInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* @see https://tools.ietf.org/html/rfc7238#section-3
2222
* @see https://tools.ietf.org/html/rfc7725#section-3
2323
* @see https://tools.ietf.org/html/rfc7540#section-9.1.2
24+
* @see https://tools.ietf.org/html/rfc8297#section-2
25+
* @see https://tools.ietf.org/html/rfc8470#section-7
2426
* Usage:
2527
*
2628
* <code>
@@ -38,6 +40,7 @@ interface StatusCodeInterface
3840
const STATUS_CONTINUE = 100;
3941
const STATUS_SWITCHING_PROTOCOLS = 101;
4042
const STATUS_PROCESSING = 102;
43+
const STATUS_EARLY_HINTS = 103;
4144
// Successful 2xx
4245
const STATUS_OK = 200;
4346
const STATUS_CREATED = 201;
@@ -83,6 +86,7 @@ interface StatusCodeInterface
8386
const STATUS_UNPROCESSABLE_ENTITY = 422;
8487
const STATUS_LOCKED = 423;
8588
const STATUS_FAILED_DEPENDENCY = 424;
89+
const STATUS_TOO_EARLY = 425;
8690
const STATUS_UPGRADE_REQUIRED = 426;
8791
const STATUS_PRECONDITION_REQUIRED = 428;
8892
const STATUS_TOO_MANY_REQUESTS = 429;

0 commit comments

Comments
 (0)