uy.kohesive.kovert.core.Exceptions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kovert-core Show documentation
Show all versions of kovert-core Show documentation
An invisible covert web framework, shhhhhhh.
package uy.kohesive.kovert.core
public open class HttpRedirect(val path: String, val code: Int = 302) : Exception()
public open class HttpErrorUnauthorized() : HttpErrorCode("unauthorized", 401)
public open class HttpErrorForbidden() : HttpErrorCode("forbidden", 403)
public open class HttpErrorBadRequest() : HttpErrorCode("bad request", 400)
public open class HttpErrorNotFound() : HttpErrorCode("not found", 404)
public open class HttpErrorCode(message: String, val code: Int = 500, causedBy: Throwable? = null) : Exception(message, causedBy)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy