Error Messages for invalid search

  • 1
  • Question
  • Updated 5 years ago
Any error messages are thrown for any invalid search value. Like invalid city name?
Photo of sf9251

sf9251

  • 1 Post
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of WunderWilliam

WunderWilliam

  • 267 Posts
  • 18 Reply Likes
It will return with:

{
"response": {
"version":"0.1",
"termsofService":"http://www.wunderground.com/weather/a...",
"features": {
"conditions": 1
}
,
"error": {
"type": "querynotfound"
,"description": "No cities match your search query"
}
}
}