Distinguish the errorview with the same error in action fallback

Hi, have an action in 2 controller that can return the same error. But in one action is html and in the other one is json.
How can i distinguish the view to render in action fallback?

Thanks

Look at the format on the conn (get_format/1 I think?). :slight_smile: