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

endpoints4s.openapi.StatusCodes.scala Maven / Gradle / Ivy

There is a newer version: 5.0.1
Show newest version
package endpoints4s
package openapi

/**
  * Interpreter for [[endpoints4s.algebra.StatusCodes]]
  *
  * @group interpreters
  */
trait StatusCodes extends endpoints4s.algebra.StatusCodes {

  type StatusCode = Int

  def OK = 200
  def Created = 201
  def Accepted = 202
  def NoContent = 204

  def BadRequest = 400
  def Unauthorized = 401
  def Forbidden = 403
  def NotFound = 404
  def PayloadTooLarge = 413
  def TooManyRequests = 429

  def InternalServerError = 500
  def NotImplemented = 501

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy