return httpResponse for register call