Why do I get 400 Bad Gateway error on GCC