package com.gentics.mesh.core.rest.error;

import com.gentics.mesh.handler.ActionContext;

import io.netty.handler.codec.http.HttpResponseStatus;

public class HttpConflictErrorException extends HttpStatusCodeErrorException {

	private static final long serialVersionUID = -3129778202887838064L;

	public static HttpConflictErrorException conflict(ActionContext ac, String conflictingUuid, String conflictingName, String i18nMessageKey,
			String... parameters) {
		return new HttpConflictErrorException(ac.i18n(i18nMessageKey, parameters), conflictingUuid, conflictingName);
	}

	public HttpConflictErrorException(String message, String conflictingUuid, String conflictingName) {
		super(message);
		this.code = HttpResponseStatus.CONFLICT.code();
		this.properties.put("conflictingUuid", conflictingUuid);
		this.properties.put("conflictingName", conflictingName);
	}
}

@@ -36,16 +36,43 @@
 error;%0A%0A
+import java.util.HashMap;%0A%0A
 import c
@@ -769,16 +769,53 @@
 code();%0A
+%09%09this.properties = new HashMap%3C%3E();%0A
 %09%09this.p

Fix 500 errors