Add errors to spec