Skip to content

Instantly share code, notes, and snippets.

@douglasiacovelli
Created January 27, 2020 00:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglasiacovelli/28d2d1b54530366f5035afbee28a28a3 to your computer and use it in GitHub Desktop.
Save douglasiacovelli/28d2d1b54530366f5035afbee28a28a3 to your computer and use it in GitHub Desktop.
data class ErrorResponse(
val error_description: String, // this is the translated error shown to the user directly from the API
val causes: Map<String, String> = emptyMap() //this is for errors on specific field on a form
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment