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

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/vhraban/http-response-codes

dev-master 2016-03-30 23:38 UTC

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.