search-api-sample: adding configuration and updating exception message.