lib/shp_api/json_responder.rb
# Render http 404 Not found (rescue_from)
Render http 404 Not found (rescue_from)
Render http 404 Not found ( rescue_from )
def not_found(exception: nil)
      msg = exception ? exception.message : "Not Found"
      @controller.render partial: "shp_api/error", locals: { message: msg, error_code: "not_found" }, status: 404
      return false
    end
def not_found ( exception : nil ) msg = exception ? exception . message : "Not Found" @controller . render partial : "shp_api/error" , locals : { message : msg , error_code : "not_found" } , status : 404 return false end
Render http 404 Not found (rescue_from)
Render http 404 Not found ( rescue_from )
exception
<not_specific>