[Rails 5] Exception response format


I began to work on the latest version of Rails 5 to make an app with an API thinking that with the merge of Rails-API, I will be able to clearly separate the expected behaviors but I’m encontering some problems with the exception rendering.

Is there a way to have exception as json when using ActionController inherited controllers and as default when using ApplicationController?