pub(super) async fn require_local_user( services: &State, user_id: &UserId, ) -> Result<()>
Reject a non-local user with 400 and an absent one with 404, mirroring Synapse’s device servlets.
400
404