404 instead of 500 for queries to the location api that don't match