Thrown exceptions doesn't count as failed requests

I have a Hono based API, running on Workers. Even though requests are failing, they do not show up as failed in the Dashboard, nor logging endpoints like Baselime.

I have tried explicitly throwing an exception:
import { Hono } from "hono";
import { HTTPException } from "hono/http-exception";
import { jwt } from "hono/jwt";

export type Bindings = {
  [key in keyof CloudflareBindings]: CloudflareBindings[key];
};

const app = new Hono<{ Bindings: Bindings }>().basePath("/v1");

app.use("*", (c, next) => {
  const jwtMiddleware = jwt({
    secret: c.env.CLERK_JWT_SECRET,
    alg: "RS256",
  });

  return jwtMiddleware(c, next);
});

app.get("/", (c) => {
  throw new HTTPException(401, { message: "Unauthorized" });
  return c.text("Hello Hono!");
});

export default app;


I have Logpush enabled and a tail worker configured.
Was this page helpful?