Updates AnonymousController to set httpCode.