Skip to content
This repository was archived by the owner on Apr 29, 2026. It is now read-only.

Commit 1af73dd

Browse files
authored
Merge pull request #31 from utopia-php/feat-add-308-code
Add 308 status code
2 parents 5fa9d42 + 97900e2 commit 1af73dd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Swoole/Response.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ class Response extends UtopiaResponse
5252

5353
public const STATUS_CODE_TEMPORARY_REDIRECT = 307;
5454

55+
public const STATUS_CODE_PERMANENT_REDIRECT = 308;
56+
5557
public const STATUS_CODE_BAD_REQUEST = 400;
5658

5759
public const STATUS_CODE_UNAUTHORIZED = 401;
@@ -127,6 +129,7 @@ class Response extends UtopiaResponse
127129
self::STATUS_CODE_USE_PROXY => 'Use Proxy',
128130
self::STATUS_CODE_UNUSED => 'Unused',
129131
self::STATUS_CODE_TEMPORARY_REDIRECT => 'Temporary Redirect',
132+
self::STATUS_CODE_PERMANENT_REDIRECT => 'Permanent Redirect',
130133
self::STATUS_CODE_BAD_REQUEST => 'Bad Request',
131134
self::STATUS_CODE_UNAUTHORIZED => 'Unauthorized',
132135
self::STATUS_CODE_PAYMENT_REQUIRED => 'Payment Required',

0 commit comments

Comments
 (0)