[chronik] use custom jsonrpc error codes for application specific errors
Summary:
These error messages and codes match the ones returned by fulcrum, to increase compatibility with existing clients.
Ref T3598
Depends on D17364
Test Plan: ninja check-functional
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Subscribers: Fabien
Maniphest Tasks: T3598
Differential Revision: https://reviews.bitcoinabc.org/D17366