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

harness.http.server.ErrorWithHTTPCode.scala Maven / Gradle / Ivy

package harness.http.server

import harness.core.HError
import harness.web.HttpCode

final case class ErrorWithHTTPCode(httpCode: HttpCode, child: HError) extends HError.Single(child.userMessage, child.internalMessage, child.causes)

extension (hError: HError) {
  def withHTTPCode(httpCode: HttpCode): HError = ErrorWithHTTPCode(httpCode, hError)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy