vhraban / http-response-codes
There is no license information available for the latest version (dev-master) of this package.
A simple interface that lists all possible HTTP Response codes
dev-master
2016-03-30 23:38 UTC
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-09-19 05:44:05 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.