| 703 | it.effect("error/schema", () => |
| 704 | Effect.gen(function*() { |
| 705 | class CustomError extends Schema.Error<CustomError>("CustomError")({ |
| 706 | _tag: Schema.tag("CustomError"), |
| 707 | name: Schema.String |
| 708 | }) { |
| 709 | [HttpServerRespondable.symbol]() { |
| 710 | return HttpServerResponse.schemaJson(CustomError)(this, { status: 599 }) |
| 711 | } |
| 712 | } |
| 713 | yield* HttpRouter.add( |
| 714 | "GET", |
| 715 | "/home", |