vhraban / http-response-codes
A simple interface that lists all possible HTTP Response codes
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/vhraban/http-response-codes
This package is not auto-updated.
Last update: 2025-10-04 00:58:39 UTC
README
The is a simple interface that lists all possible HTTP Response codes thus eliminating the need to hardcode magic numbers.
Usage
Nothing can be simplier:
return new Response("Server error", HTTPResponseCodes::REQUEST_URI_TOO_LONG)
Thanks
Thanks to symfony/http-foundation for all the status codes used in this package.