some url handling repairs, move existing error reply handlers to new format