moved KeyErrorException to fit dropwizzard