Language: Java
Label: safe
CWE: NVD-CWE-noinfo \u2014 

Code:
    public ResponseEntity<Map<String, Object>> onGlobalBaseException(Throwable t) {
        final String message = t.getMessage();
        final Map<String, Object> body = ImmutableMap.of("status", HttpStatus.INTERNAL_SERVER_ERROR.value(),
                                                         "message", message);
        return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(body);
    }