Unregister and return value

it should have differently return value when register/unregister failed, I add HttpResponseNotFound(404) in this case