HttpException
constructor(statusCode: HttpStatusCode = HttpStatusCode.InternalServerError, title: String? = null, details: String? = null, type: String? = null, instance: String? = null, cause: Throwable? = null)
Creates a new instance of this exception based on a status code and other details contributing to a Problem.
Parameters
problem
the problem to use as the basis for this exception. In case the problem does not contain a status code, an internal server error 500 is assumed.
cause
the exception that caused this problem or null if none.