repat / http-constants
HTTP response codes provided as defined constants.
0.1
2019-04-18 15:18 UTC
Requires
- php: >=5.6
Suggests
- symfony/http-foundation: Best HTTP package out there
This package is auto-updated.
Last update: 2024-11-19 03:20:37 UTC
README
http-constants is a package with a list of HTTP codes. Every constant begins with HTTP_
and is wrapped in a if(!defined('HTTP_CODE'))
to avoid conflicts.
Shoutout to legendarydrew/http-constants
for the base of this package.
Installation
$ composer require repat/http-constants
List of Codes
HTTP_CONTINUE
: 100HTTP_SWITCHING_PROTOCOLS
: 101HTTP_PROCESSING
: 102HTTP_OK
: 200HTTP_CREATED
: 201HTTP_ACCEPTED
: 202HTTP_NON_AUTHORITATIVE_INFORMATION
: 203HTTP_NO_CONTENT
: 204HTTP_RESET_CONTENT
: 205HTTP_PARTIAL_CONTENT
: 206HTTP_MULTI_STATUS
: 207HTTP_ALREADY_REPORTED
: 208HTTP_IM_USED
: 226HTTP_MULTIPLE_CHOICES
: 300HTTP_MOVED_PERMANENTLY
: 301HTTP_FOUND
: 302HTTP_SEE_OTHER
: 303HTTP_NOT_MODIFIED
: 304HTTP_USE_PROXY
: 305HTTP_RESERVED
: 306HTTP_TEMPORARY_REDIRECT
: 307HTTP_PERMANENTLY_REDIRECT
: 308HTTP_BAD_REQUEST
: 400HTTP_UNAUTHORIZED
: 401HTTP_PAYMENT_REQUIRED
: 402HTTP_FORBIDDEN
: 403HTTP_NOT_FOUND
: 404HTTP_METHOD_NOT_ALLOWED
: 405HTTP_NOT_ACCEPTABLE
: 406HTTP_PROXY_AUTHENTICATION_REQUIRED
: 407HTTP_REQUEST_TIMEOUT
: 408HTTP_CONFLICT
: 409HTTP_GONE
: 410HTTP_LENGTH_REQUIRED
: 411HTTP_PRECONDITION_FAILED
: 412HTTP_REQUEST_ENTITY_TOO_LARGE
: 413HTTP_REQUEST_URI_TOO_LONG
: 414HTTP_UNSUPPORTED_MEDIA_TYPE
: 415HTTP_REQUESTED_RANGE_NOT_SATISFIABLE
: 416HTTP_EXPECTATION_FAILED
: 417HTTP_I_AM_A_TEAPOT
: 418HTTP_MISDIRECTED_REQUEST
: 421HTTP_UNPROCESSABLE_ENTITY
: 422HTTP_LOCKED
: 423HTTP_FAILED_DEPENDENCY
: 424HTTP_RESERVED_FOR_WEBDAV_ADVANCED_COLLECTIONS_EXPIRED_PROPOSAL
: 425HTTP_UPGRADE_REQUIRED
: 426HTTP_PRECONDITION_REQUIRED
: 428HTTP_TOO_MANY_REQUESTS
: 429HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE
: 431HTTP_UNAVAILABLE_FOR_LEGAL_REASONS
: 451HTTP_INTERNAL_SERVER_ERROR
: 500HTTP_NOT_IMPLEMENTED
: 501HTTP_BAD_GATEWAY
: 502HTTP_SERVICE_UNAVAILABLE
: 503HTTP_GATEWAY_TIMEOUT
: 504HTTP_VERSION_NOT_SUPPORTED
: 505HTTP_VARIANT_ALSO_NEGOTIATES_EXPERIMENTAL
: 506HTTP_INSUFFICIENT_STORAGE
: 507HTTP_LOOP_DETECTED
: 508HTTP_NOT_EXTENDED
: 510HTTP_NETWORK_AUTHENTICATION_REQUIRED
: 511
License
- MIT, see LICENSE
Version
- Version 0.1
Contact
repat
- Homepage: https://repat.de
- e-mail: repat@repat.de
- Twitter: @repat123