It's probably better to return the proxy response including the http status: 403s, 500s, ... whatever proxy returns that is not a 200.