Skip to content
Playground(another site)

bynk.http.reserved_prefix

Error A route uses a reserved prefix: /_bynk/ (internal dispatch) or /_assets/ (static assets).

Two path prefixes belong to the platform. /_bynk/ is reserved for Bynk's own dispatch, and /_assets/ is where content-hashed static assets are served before the Worker runs, so a handler there could be shadowed by any asset. A route at either, or at the bare /_bynk or /_assets, is refused. Choose another path.

Example

on GET("/_bynk/health") () -> Effect[HttpResult[String]] by v: Visitor { … } // ✗ reserved for the runtime
on GET("/health") () -> Effect[HttpResult[String]] by v: Visitor { … } // ✓

In the Book

See also

  • The grammar rule it governs: http_handler.
  • Every code in its category, HTTP, on the diagnostic index.
  • bynk explain bynk.http.reserved_prefix shows the same from the installed toolchain, without a network.