Skip to content

Commit

Permalink
fix: fix returning 500 when error happening due to additional field
Browse files Browse the repository at this point in the history
  • Loading branch information
duruer committed Jun 17, 2024
1 parent dcf04ea commit 668e53b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/co/statu/rule/auth/RegisterInputError.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class RegisterInputError(
private val prefix: String,
private val suffix: String,
private val field: String,
private val statusCode: Int = 500,
private val statusCode: Int = 422,
private val statusMessage: String = "",
private val extras: Map<String, Any?> = mapOf()
) : Throwable(), Result {
Expand Down

0 comments on commit 668e53b

Please sign in to comment.