Refactor error messages to be in lower case (#30)
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user