export const PRODUCT_RESPONSE_HEADER = 'x-elastic-product' ; param headers returns export const isSupportedEsServer = ( headers ) => { return ! ! headers && headers [ PRODUCT_RESPONSE_HEADER ] === 'Elasticsearch' ; } ; param response returns export const isNotFoundFromUnsupportedServer = ( args ) : boolean => { return args . statusCode === 404 && ! isSupportedEsServer ( args . headers ) ; } ;