Skip to content

Instantly share code, notes, and snippets.

@dariathecracker
Last active October 14, 2020 07:29
Show Gist options
  • Save dariathecracker/d22f3cf5ce8e999b9d6b9b6ed0a378d6 to your computer and use it in GitHub Desktop.
Save dariathecracker/d22f3cf5ce8e999b9d6b9b6ed0a378d6 to your computer and use it in GitHub Desktop.
endpoint.errorOut( oneOf[String](
statusMapping(StatusCode.Unauthorized, stringBody),
statusMapping(StatusCode.BadRequest, stringBody) ) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment