‹ Back to homepage

Marquis Kurt

Python, Swift, indie game, and Web developer

A fancy avatar of me, Marquis Kurt.

I’m a Teapot

Well, I mean I’m not, but this is the typical way we handle this. The response here is short and stout.

enum CoffeeHTTPError: Error {
    case isTeapot

func diagnoseError(err: CoffeeHTTPError) {
    switch err {
    case .isTeapot:
        return "The response is short and stout."
        return err

diagnoseError(err: window.incomingCoffeeNetworkError)