feat: implement createRFC7807Error factory to support RFC7807
This PR introduces a new createRFC7807Error factory method for creating errors compatible with RFC7807
Test coverage included for default and custom scenarios
fixes: https://github.com/fastify/fastify-error/issues/64
#### Checklist
- [x] run `npm run test` and `npm run benchmark`
- [x] tests and/or benchmarks are included
- [ ] documentation is changed or added
- [x] commit message and code follows the [Developer's Certification of Origin](https://github.com/fastify/.github/blob/main/CONTRIBUTING.md#developers-certificate-of-origin-11)
and the [Code of conduct](https://github.com/fastify/.github/blob/main/CODE_OF_CONDUCT.md)
合并状态:未合并 3 条评论