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

This package is not auto-updated.

Last update: 2024-05-31 18:43:49 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.