Refactor urldispatcher response