Why don't APIs have a general path for reporting API errors?
1/ We should have an API tracing system, hosted in a server for example, which capture all requests, including the params, headers, response. with some secure rule, e.g. hide Secret-Token header.
2/ Each request will have a header, its value is the request-id for example
3/ Whenever a bug come, we just need use request-id from 2/ and search the information in 1/
Right ?