use graham's exception middleware and merge prettyjson into transformer