MCPcopy Create free account
hub / github.com/OctaneWeb/Octane / status

Method status

src/responder.rs:287–290  ·  view source on GitHub ↗

Set the status code from the status code enum # Example ``` use octane::prelude::*; use octane::StatusCode; let mut app = Octane::new(); app.get( "/", route!( |req, res| { res.status(StatusCode::NotFound).send("Page not found"); Flow::Stop } ), ); ```

(&mut self, code: StatusCode)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

redirectMethod · 0.80
sendMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected