Rescue from ActionController errors with the correct format response e.g, XML, JSON or HTML