Refactor error messages to be in lower case (#30)

This commit is contained in:
Art
2021-09-27 22:50:40 +03:00
parent dd536c5bf1
commit 9210e726bf
6 changed files with 24 additions and 24 deletions

View File

@ -99,7 +99,7 @@ public class UserResource {
.httpStatusCode(OK.value())
.httpStatus(OK)
.reason(OK.getReasonPhrase())
.message("User deleted successfully".toUpperCase())
.message("User deleted successfully")
.build();
}

View File

@ -11,7 +11,7 @@ public class HttpResponseUtility {
.httpStatus(httpStatus)
.httpStatusCode(httpStatus.value())
.reason(httpStatus.getReasonPhrase().toUpperCase())
.message(message.toUpperCase())
.message(message)
.build();
return new ResponseEntity<>(httpResponse, httpStatus);
}