LOGGER.fine("Response has error code "+response.getCode()+" and must be sent as CON");
response.setType(Type.CON);
relation.cancel();
} else {
// Make sure that every now and than a CON is mixed within
if (relation.check()) {
LOGGER.fine("The observe relation requires the notification to be sent as CON");
response.setType(Type.CON);
// By default use NON, but do not override resource decision
} else if (response.getType()==null) {
response.setType(Type.NON);