Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Commit 67a8940

Browse files
committed
Fix http status code for error LP-User-404
1 parent eb96442 commit 67a8940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/src/main/kotlin/dev/medzik/librepass/errors/ServerError.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ enum class ServerError(val statusCode: HttpStatus, val error: String) {
1818
MissingCipher(HttpStatus.BAD_REQUEST, "LP-Missing-Cipher"),
1919
NotFound(HttpStatus.NOT_FOUND, "LP-404"),
2020
RateLimit(HttpStatus.TOO_MANY_REQUESTS, "LP-RateLimit"),
21-
UserNotFound(HttpStatus.BAD_REQUEST, "LP-User-404"),
21+
UserNotFound(HttpStatus.NOT_FOUND, "LP-User-404"),
2222
Database(HttpStatus.INTERNAL_SERVER_ERROR, "LP-Database-Error"),
2323
Mail(HttpStatus.INTERNAL_SERVER_ERROR, "LP-Mail-Error")
2424
}

0 commit comments

Comments
 (0)