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

Return 500 code in JSON rather than actual 500 error #3

Open
allanjamesvestal opened this issue Jun 17, 2015 · 0 comments
Open

Return 500 code in JSON rather than actual 500 error #3

allanjamesvestal opened this issue Jun 17, 2015 · 0 comments

Comments

@allanjamesvestal
Copy link
Owner

When something goes wrong with a geocoding request, we should return a JSON object with the 5XX code (and a description of the error), rather than returning an actual HTTP 5XX response.

This will let other applications handle errors within AJAX success() functions, and should make those integrations less brittle in general.

I suppose we could also add an option to return error objects rather than actual statuses, in case developers prefer to handle 5XX codes in a more browser-native way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant