phapi / exception
Phapi Exceptions
Installs: 4 373
Dependents: 12
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: >=5.6.0
- phapi/contract: 1.*
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2021-02-13 15:23:32 UTC
README
Package contains a set of exceptions matching HTTP error responses. Phapi will take care of logging the error and sending a proper error response when throwing these exceptions.
Installation
The package is installed by default by the Phapi framework. Installing the package to use is separately can be done by using composer:
$ composer require phapi/exception:1.*
Included exceptions
- BadGateway
- BadRequest
- Conflict
- Forbidden
- Gone
- InternalServerError
- Locked
- MethodNotAllowed
- NotAcceptable
- NotFound
- NotImplemented
- PaymentRequired
- RequestEntityTooLarge
- RequestTimeout
- ServiceUnavailable
- TooManyRequests
- Unauthorized
- UnprocessableEntity
- UnsupportedMediaType
License
Phapi Exception is licensed under the MIT License - see the license.md file for details
Contribute
Contribution, bug fixes etc are always welcome.