HTTP erros with JSON content, fixed crashes on incorrect upstream server addresses