Skip to content

Instantly share code, notes, and snippets.

@adamw
Created May 4, 2019 12:25
Show Gist options
  • Save adamw/9a02e05955de646875cd7fd81e662b91 to your computer and use it in GitHub Desktop.
Save adamw/9a02e05955de646875cd7fd81e662b91 to your computer and use it in GitHub Desktop.
val baseEndpoint: Endpoint[Unit, (StatusCode, ErrorInfo), Unit, Nothing] =
endpoint
.in("api" / "v1.0")
.errorOut(statusCode.and(jsonBody[ErrorInfo]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment