Add test 404 for GetArticle route

This commit is contained in:
2021-04-09 01:40:22 +02:00
parent fb7b07340a
commit 875d0bfffa
3 changed files with 35 additions and 4 deletions

View File

@@ -14,10 +14,8 @@ import java.util.concurrent.CompletionException
class HttpError(
statusCode: HttpStatusCode,
val cause: Throwable? = null,
val type: String? = null,
cause: Throwable? = null,
val title: String = cause?.message ?: statusCode.description,
val detail: String? = null,
) {
val statusCode: Int = statusCode.value
}