Usage
Introduction
You can use the HTTP Status Library in three different ways:
- simply instantiate new value objects for known HTTP status codes, and/or
- use the traits in the
StatusProviders
namespace to add agetHttpStatus()
method to your own value objects, entities and exceptions - implement one of the
HttpException
interfaces to allow code to catch whole classes of exception quickly and easily