add content type and print exception in produce filter