class ResponseUtils {

	public static ResponseEntity<Object> buildFailureResponse(Exception exception) {
		Map<String, Object> errorDetails = new HashMap();
		errorDetails.put(Constants.MESSAGE_KEY, exception.getMessage());
		return ResponseEntity.status(HttpStatus.EXPECTATION_FAILED).body((Object) errorDetails);
	}

}