I once got a 502 Bad Gateway and this is what was shown: >Response was not JSON: SyntaxError: Unexpected token < in JSON at position 0  A different message would be nicer, e.g. that the server couldn't be reached.