title: Not able to send status through URL in reactjs
body: <p>I am trying to send status 404 but I am not able to send it while using the following code. I am using version 5 for react-router-dom. I have tried various ways but its still not showing the correct status and shows 200 for every URL.</p>
  
  <pre><code>  return (
      &lt;Router&gt;
        &lt;div className="App"&gt;
          &lt;header className="App-header"&gt;
            &lt;img src={logo} className="App-logo" alt="logo" /&gt;
            &lt;h1 className="App-title"&gt;Welcome to the Pokédex&lt;/h1&gt;
          &lt;/header&gt;
          &lt;br /&gt;
          &lt;br /&gt;
          &lt;div className="App-body"&gt;
            &lt;h2&gt;Information about Pokémon, Berries and Machine&lt;/h2&gt;
            &lt;p&gt;This website will tell you about how pokemon works.&lt;/p&gt;
            &lt;Link className="showlink" to="/pokemon/page/0"&gt;
              Pokémon
            &lt;/Link&gt;
            &lt;Link className="showlink" to="/berries/page/0"&gt;
              Berries
            &lt;/Link&gt;
            &lt;Link className="showlink" to="/machines/page/0"&gt;
              Machines
            &lt;/Link&gt;
            &lt;Switch&gt;
              &lt;Route exact path="/" /&gt;
              &lt;Route
                exact
                path="/pokemon/page/:page"
                exact
                component={PokemonList}
              /&gt;
              &lt;Route
                exact
                path="/berries/page/:page"
                exact
                component={BerriesList}
              /&gt;
              &lt;Route
                exact
                path="/machines/page/:page"
                exact
                component={MachineList}
              /&gt;
              &lt;Route exact path="/pokemon/:id" exact component={Pokemon} /&gt;
              &lt;Route exact path="/berries/:id" exact component={Berries} /&gt;
              &lt;Route exact path="/machines/:id" exact component={Machines} /&gt;
              &lt;Route path="*" status={404}&gt;
                &lt;PageNotFound /&gt;
              &lt;/Route&gt;
            &lt;/Switch&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/Router&gt;
    );
  }
  </code></pre>