After T260604: Display a popup with fixed mock data for an IP address on the specified page(s), mock data is displayed in the IPInfo popup, when the API successfully returns data.
When the API responds with a failure code, we should also display an appropriate failure message.
Questions:
What should the error message look like?(See below)~~- What should the text say? (The API returns a JSON object with translated messages: https://www.mediawiki.org/wiki/API:REST_API/Status_codes - however, if we use these, we'd be limited to the languages given, and would not be able to use the fall-back algorithm for missing languages.)
Note that T263409 is specifically for displaying timeout errors.
Popup error states:
Figma