failure vs feather in one's cap

failure

noun
  • Omission to do something, whether or not it was attempted, especially something that ought to have been done. 

  • State or condition of not meeting a desirable or intended objective, opposite of success. 

  • Bankruptcy. 

  • An object, person or endeavour in a state of failure or incapable of success. 

  • Termination of the ability of an item to perform its required function; breakdown. 

feather in one's cap

noun
  • An accomplishment; particularly one that is flaunted or boasted of. 

  • He thinks it is quite a feather in his cap that he figured it out for himself. 

  • Used other than figuratively or idiomatically: see feather, cap. 

How often have the words failure and feather in one's cap occurred in a corpus of books? (source: Google Ngram Viewer )