throws

inline fun <T : OpenAPIRoute<T>, EX : Throwable> T.throws(status: HttpStatusCode, exClass: KClass<EX>, crossinline fn: T.() -> Unit = {}): T(source)
inline fun <T : OpenAPIRoute<T>, EX : Throwable, B> T.throws(status: HttpStatusCode, example: B? = null, exClass: KClass<EX>, crossinline fn: T.() -> Unit = {}): T(source)

exists for simpler syntax


inline fun <T : OpenAPIRoute<T>, EX : Throwable> T.throws(status: HttpStatusCode, crossinline fn: T.() -> Unit = {}): T(source)
inline fun <T : OpenAPIRoute<T>, EX : Throwable, B> T.throws(status: HttpStatusCode, example: B? = null, noinline gen: (EX) -> B? = null, crossinline fn: T.() -> Unit = {}): T(source)
inline fun <T : OpenAPIRoute<T>> T.throws(vararg responses: APIException<*, *>, crossinline fn: T.() -> Unit = {}): T(source)