pass statusCode in proxy