GUI: Proper handling of all HTTP return codes

- Display proper error message on any HTTP return code != 200.
  Our special cases are handled as of until now.
- Code simplification.