All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spice.ValidationError.scala Maven / Gradle / Ivy

There is a newer version: 0.7.2
Show newest version
package spice

import fabric.rw._
import spice.http.HttpStatus

object ValidationError {
  val General: Int = 0
  val RequestParsing: Int = 1
  val Internal: Int = 2

  implicit val rw: RW[ValidationError] = RW.gen
}

case class ValidationError(message: String,
                           code: Int = ValidationError.General,
                           status: HttpStatus = HttpStatus.InternalServerError)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy