Skip to content

Commit c9ee827

Browse files
carlbennettclaude
andcommitted
Fix PAYLOAD_TOO_LARGE case label in HttpCode::codeFromString
Semicolon instead of colon made the case a no-op, causing the method to throw UnexpectedValueException instead of returning 413. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ae5926f commit c9ee827

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Libraries/Core/HttpCode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public static function codeFromString(string $value): int
170170
case 'OKAY': return self::HTTP_OK;
171171
case 'OTHER': return self::HTTP_SEE_OTHER;
172172
case 'PARTIAL_CONTENT': return self::HTTP_PARTIAL_CONTENT;
173-
case 'PAYLOAD_TOO_LARGE'; return self::HTTP_PAYLOAD_TOO_LARGE;
173+
case 'PAYLOAD_TOO_LARGE': return self::HTTP_PAYLOAD_TOO_LARGE;
174174
case 'PERMANENT_REDIRECT': return self::HTTP_PERMANENT_REDIRECT;
175175
case 'PERMANENT': return self::HTTP_MOVED_PERMANENTLY;
176176
case 'PRECONDITION_FAILED': return self::HTTP_PRECONDITION_FAILED;

0 commit comments

Comments
 (0)