2017 © Pedro Peláez
 

library http-response-codes

A simple interface that lists all possible HTTP Response codes

image

vhraban/http-response-codes

A simple interface that lists all possible HTTP Response codes

  • Thursday, March 31, 2016
  • by hraban
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

HTTP Response Codes

The is a simple interface that lists all possible HTTP Response codes thus eliminating the need to hardcode magic numbers., (*1)

Usage

Nothing can be simplier:, (*2)

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., (*3)

The Versions

31/03 2016

dev-master

9999999-dev

A simple interface that lists all possible HTTP Response codes

  Sources   Download