Skip to content

Commit b267465

Browse files
committed
๐Ÿ› Fixed ApiExceptionHandler ๐Ÿ›
1 parent d3dd9c3 commit b267465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

โ€Žsrc/main/kotlin/club/anifox/backend/controller/exception/ApiExceptionHandler.ktโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class ApiExceptionHandler : ResponseEntityExceptionHandler() {
6969
ex: BadCredentialsException,
7070
request: WebRequest,
7171
) {
72-
response.status = HttpStatus.UNAUTHORIZED.value()
72+
response.status = HttpStatus.CONFLICT.value()
7373
response.contentType = MediaType.APPLICATION_JSON_VALUE
7474
response.writer.write("{\"error\": \"${ex.message}\"}")
7575
response.writer.flush()

0 commit comments

Comments
ย (0)