This PR adds optional http error handlers. If handler returns nothing it will continue and send regular Response. This allow you to have route-specific handlers or handlers that just produce some side effect (e.g. logging).
Also after development I ran php cs fixer and aperently PHPCSFixer rule set contains some new rules so it changed most of the files.
This PR adds optional http error handlers. If handler returns nothing it will continue and send regular Response. This allow you to have route-specific handlers or handlers that just produce some side effect (e.g. logging).
Also after development I ran php cs fixer and aperently PHPCSFixer rule set contains some new rules so it changed most of the files.