Skip to content

Commit f21fd86

Browse files
authored
Merge pull request #120 from utopia-php/allow-451-error-code
Add 451 status code
2 parents f1f0df1 + 933ebc6 commit f21fd86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Http/Response.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ abstract class Response
115115

116116
public const STATUS_CODE_TOO_MANY_REQUESTS = 429;
117117

118+
public const STATUS_CODE_UNAVAILABLE_FOR_LEGAL_REASONS = 451;
119+
118120
public const STATUS_CODE_INTERNAL_SERVER_ERROR = 500;
119121

120122
public const STATUS_CODE_NOT_IMPLEMENTED = 501;
@@ -168,6 +170,7 @@ abstract class Response
168170
self::STATUS_CODE_EXPECTATION_FAILED => 'Expectation Failed',
169171
self::STATUS_CODE_TOO_EARLY => 'Too Early',
170172
self::STATUS_CODE_TOO_MANY_REQUESTS => 'Too Many Requests',
173+
self::STATUS_CODE_UNAVAILABLE_FOR_LEGAL_REASONS => 'Unavailable For Legal Reasons',
171174
self::STATUS_CODE_INTERNAL_SERVER_ERROR => 'Internal Server Error',
172175
self::STATUS_CODE_NOT_IMPLEMENTED => 'Not Implemented',
173176
self::STATUS_CODE_BAD_GATEWAY => 'Bad Gateway',

0 commit comments

Comments
 (0)