Updating some status codes, adding 1xx

This commit is contained in:
Brian 2022-05-04 13:10:37 -06:00
parent 425136323b
commit 38f62e7df6
Signed by: brian
GPG Key ID: DE1A5390A3B84CD8

View File

@ -1,23 +1,30 @@
<?php <?php
$httpCodes = [ $httpCodes = [
// 200's (successful) // 100's (informational / "hold on")
100 => 'HTTP_CONTINUE',
101 => 'HTTP_SWITCHING_PROTOCOLS',
102 => 'HTTP_PROCESSING',
103 => 'HTTP_EARLY_HINTS',
// 200's (successful / "here you go")
200 => 'HTTP_SUCCESS', 200 => 'HTTP_SUCCESS',
201 => 'HTTP_CREATED', 201 => 'HTTP_CREATED',
202 => 'HTTP_ACCEPTED', 202 => 'HTTP_ACCEPTED',
204 => 'HTTP_NO_CONTENT', 204 => 'HTTP_NO_CONTENT',
205 => 'HTTP_RESET_CONTENT', 205 => 'HTTP_RESET_CONTENT',
206 => 'HTTP_PARTIAL_CONTENT', 206 => 'HTTP_PARTIAL_CONTENT',
208 => 'HTTP_ALREADY_REPORTED',
// 300's (redirections) // 300's (redirections / "go away")
300 => 'HTTP_MULTIPLE_CHOICE',
301 => 'HTTP_MOVED_PERMANENTLY', 301 => 'HTTP_MOVED_PERMANENTLY',
302 => 'HTTP_REDIRECT_FOUND', 302 => 'HTTP_REDIRECT_FOUND',
303 => 'HTTP_SEE_OTHER',
304 => 'HTTP_NOT_MODIFIED', 304 => 'HTTP_NOT_MODIFIED',
307 => 'HTTP_TEMP_REDIRECT', 307 => 'HTTP_TEMPORARY_REDIRECT',
308 => 'HTTP_PERMANENT_REDIRECT', 308 => 'HTTP_PERMANENT_REDIRECT',
// 400's (app got the request but couldn't process it successfully, coding error) // 400's (app got the request but couldn't process it successfully, coding error / "user screwed up")
400 => 'HTTP_BAD_REQUEST', 400 => 'HTTP_BAD_REQUEST',
401 => 'HTTP_UNAUTHORIZED', 401 => 'HTTP_UNAUTHORIZED',
402 => 'HTTP_PAYMENT_REQUIRED', 402 => 'HTTP_PAYMENT_REQUIRED',
@ -42,7 +49,7 @@ $httpCodes = [
429 => 'HTTP_TOO_MANY_REQUESTS', 429 => 'HTTP_TOO_MANY_REQUESTS',
451 => 'HTTP_GAG_ORDER', 451 => 'HTTP_GAG_ORDER',
// 500's (server-level problem, process died or configuration is incorrect) // 500's (server-level problem, process died or configuration is incorrect / "server screwed up")
500 => 'HTTP_SERVER_ERROR', 500 => 'HTTP_SERVER_ERROR',
501 => 'HTTP_NOT_IMPLEMENTED', 501 => 'HTTP_NOT_IMPLEMENTED',
503 => 'HTTP_UNAVAILABLE', 503 => 'HTTP_UNAVAILABLE',