Rails: Return a 401? March 20, 2023 by Tarik You can add the :status option def permission_denied render :file => "public/401.html", :status => :unauthorized end