Errors should implement `http.Handler` interface which allows using them with routes, for example: ```go router.Get("/", errors.NewUnauthorized(err)) ```