We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b62a64a commit dd196eeCopy full SHA for dd196ee
src/main/kotlin/org/exploit/keeper/component/exception/BadRequestExceptionMapper.kt
@@ -10,7 +10,7 @@ import jakarta.ws.rs.ext.Provider
10
class BadRequestExceptionMapper : ExceptionMapper<BadRequestException> {
11
override fun toResponse(exception: BadRequestException): Response {
12
return Response.status(Response.Status.BAD_REQUEST)
13
- .entity(mapOf("error" to (exception.message ?: "Bad request")))
+ .entity(mapOf("message" to (exception.message ?: "Bad request")))
14
.type(MediaType.APPLICATION_JSON)
15
.build()
16
}
0 commit comments