How about 502 Bad Gateway. From RFC 3261:

```
The server, while acting as a gateway or proxy, received an invalid
response from the downstream server it accessed in attempting to
fulfill the request.
```