KOF-ch / kofdata

Get Data from the KOF Datenservice API
5 stars 2 forks source link

validate_response does not handle "any" response code #13

Open HomoCodens opened 2 years ago

HomoCodens commented 2 years ago

In its current implementation, the function validate_response returns NULL it if receives an HTTP status code that is not explicitly listed in the switch. A default branch with an informative error message should be added.

https://github.com/KOF-ch/kofdata/blob/main/R/validate_response.R