Partial conversion to spec error handlers.