Closed samdark closed 5 years ago
For JSON format it would be good to follow a standard, e.g. "Problem Details for HTTP APIs" https://tools.ietf.org/html/rfc7807
Wasn't aware of this RFC. Thanks!
It's describing XML as well.
@cebe checked the RFC and I think it's not suitable for generic errors.
Skeleton for error rendering is done. Rendering itself should be ported from Yii 2.0:
Could be tested by installing yii-demo via yii-dev.