class Lookbook::ApplicationController
def get_status_code(err)
def get_status_code(err) if err.respond_to?(:status) err.status else status_map = ActionDispatch::ExceptionWrapper.rescue_responses status_map.fetch(err.class.name, :internal_server_error) end end