module Mountapi module Error class RouteNotFound < StandardError def initialize(url, method) @url = url @method = method super(title) end def to_json_api { title: title, status: 404 } end private def title "Resource not found: #{@method} #{@url}" end end end end