Fix bad gateway status code