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