Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide response status code in case of error #302

Open
aleksey-korolev opened this issue Jul 2, 2024 · 0 comments
Open

Provide response status code in case of error #302

aleksey-korolev opened this issue Jul 2, 2024 · 0 comments
Labels
triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@aleksey-korolev
Copy link

Is your feature request related to a problem? Please describe.
We'd like to be able to separately monitor different error types such as quota exceeded which isn't possible since status code is not returned by the go client.
See https://github.com/googlemaps/google-maps-services-go/blob/master/client.go#L384

Describe the solution you'd like
It would be nice to be able to get status code of error, not just error string, in high-level functions such as Geocode(): https://github.com/googlemaps/google-maps-services-go/blob/master/geocoding.go#L35

Describe alternatives you've considered
Alternative we are using now is searching of status code substring such as OVER_QUERY_LIMIT in returned error string.

@aleksey-korolev aleksey-korolev added triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

1 participant