add unregister and return HttResponse 404 if failed to register/unregister