---
id: gk-gravityview-view-output-direct-404
title: "Filter - gk/gravityview/view/output/direct/404"
sidebar_label: "gk/gravityview/view/output/direct/404"
tags:
  - "3.4.0"
---

# Filter: gk/gravityview/view/output/direct/404

Whether a View that denies direct access should answer 404 rather than a 200 page carrying an explanatory message.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $should_404 | `bool` | Whether to send a 404. Default: true. |
| $view | <a href="../../api/classes/gv-view">\GV\View</a> | The View being requested directly. |

### Since

- 3.4.0

### Source

Defined in `src/View/DirectAccess.php` at line 151

