Open IsQiao opened 4 months ago
Hi @IsQiao!
I don't think it will be that useful, because none of the components VictoriaMetrics can be integrated will expect it to return error codes. In result, none of these integrations would benefit from having these error codes added.
Hi @hagen1778 , My current scenario is that there is a charting front-end under development that is using VictorialMetrics as the back-end engine, and the charting front-end when configured with some very large time ranges or label ranges some of the scenarios get an error, and these errors want to be asserted by the front-end and then i18n processed to display.
It's okay. I'll think of something else. Thank you.
Let's keep this issue open in case if other users will find it useful.
Is your feature request related to a problem? Please describe
No response
Describe the solution you'd like
i want to check the error type, but current the error code '422' is too vague, many error types is '422'
Current
error response format when call victorial metrics
query_range
API:Solution
like prometheus response error type
https://github.com/prometheus/client_golang/blob/main/api/prometheus/v1/api.go#L411
Describe alternatives you've considered
No response
Additional information
No response