Update error types of the search command based on the latest implementation