phpro / api-problem

RFC7807 Problem details implementation
MIT License
65 stars 8 forks source link

Add Bad Request problem #6

Closed Landerstraeten closed 4 years ago

Landerstraeten commented 4 years ago

Hi

This PR would be a shorter version for:

new HttpApiProblem(400, ['detail' => 'a reason']);
veewee commented 4 years ago

Thanks for the PR! Looks good, can you also take a look at the tests + add documentation?