You could check the status in the ResultHandler
mockMvc.perform(post("/xyz").contentType(...).content(...))
.andDo(r -> {
if (r.getResponse().getStatus() != 200) {
printResponse(r);
}
})
.andExpect(status().isOk)