add SessionVideoApi

This commit is contained in:
2026-08-07 13:39:00 +03:00
parent b851cf5d6d
commit 23d9912449
10 changed files with 119 additions and 50 deletions
@@ -2,7 +2,9 @@ package ru.shadowsparky.http.domain
import io.ktor.http.HttpStatusCode
open class HttpException(val httpCode: Int, override val message: String?) : RuntimeException()
open class HttpException(val httpCode: Int, override val message: String?) : RuntimeException() {
constructor(code: HttpStatusCode) : this(code.value, code.description)
}
class BadRequestException(msg: String) : HttpException(HttpStatusCode.BadRequest.value, msg)
open class NotFoundException(msg: String) : HttpException(HttpStatusCode.NotFound.value, msg)