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 informative get_eurostat_json error messages to the user #261

Closed
pitkant opened this issue May 26, 2023 · 1 comment
Closed

Return informative get_eurostat_json error messages to the user #261

pitkant opened this issue May 26, 2023 · 1 comment

Comments

@pitkant
Copy link
Member

pitkant commented May 26, 2023

Eurostat website lists different types of HTTP status errors that Statistics API can return. As mentioned in #260 these error messages are not returned to the end user in R but they can be viewed e.g. in the web browser. It would be good if these ids (fault codes) and labels (descriptions) would be returned to the user in R as well.

Fault code HTTP status Description
Client Errors
100 No results found 400 Bad request The result from the query is empty.
100 No results found 404 Not Found The requested resource is not available.
140 Syntax error 400 Bad request The query is invalid.
150 Semantic error 400 Bad request The request is syntactically correct but fails a semantic validation, business rules.
Server errors  
500 Internal Server error 500 Internal server error The webservice should return this error code when none of the other error codes better describes the reason for the failure of the service to provide a meaningful response.Also used in case of request not respecting the xsd definition.
@pitkant
Copy link
Member Author

pitkant commented Jun 26, 2023

Solved in #262 and d74bcb7

@pitkant pitkant closed this as completed Jun 26, 2023
eurostat 4.0.0 automation moved this from In progress to Done Jun 26, 2023
@pitkant pitkant mentioned this issue Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

1 participant