Index: /FCKeditor.Java/branches/2.4/src/main/java/net/fckeditor/connector/ConnectorServlet.java
===================================================================
--- /FCKeditor.Java/branches/2.4/src/main/java/net/fckeditor/connector/ConnectorServlet.java	(revision 1638)
+++ /FCKeditor.Java/branches/2.4/src/main/java/net/fckeditor/connector/ConnectorServlet.java	(revision 1639)
@@ -54,5 +54,5 @@
  * directory. The allowed commands are:
  * <ul>
- * <li>GetFolders: Retrive the list of directory under the current folder
+ * <li>GetFolders: Retri�ve the list of directory under the current folder
  * <li>GetFoldersAndFiles: Retrive the list of files and directory under the current folder
  * <li>CreateFolder: Create a new directory under the current folder
@@ -123,5 +123,5 @@
 
 		if (!SessionDataHandler.isEnabledForFileBrowsing(request)) {
-			xr.setError(1, "The current user isn't authorized for file browsing!");
+			xr.setError(XmlResponse.EN_ERROR, XmlResponse.CM_NOT_AUTHORIZED);
 		} else if (commandStr.equals("GetFolders")) {
 			xr.setFolders(currentDir);
@@ -132,13 +132,13 @@
 			String newFolderStr = request.getParameter("NewFolderName");
 			File newFolder = new File(currentDir, newFolderStr);
-			int errorNumber = 110;
+			int errorNumber = XmlResponse.EN_UKNOWN;
 
 			if (newFolder.exists()) {
-				errorNumber = 101;
+				errorNumber = XmlResponse.EN_ALREADY_EXISTS;
 			} else {
 				try {
-					errorNumber = (newFolder.mkdir()) ? 0 : 102;
-				} catch (SecurityException sex) {
-					errorNumber = 103;
+					errorNumber = (newFolder.mkdir()) ? XmlResponse.EN_OK : XmlResponse.EN_INVALID;
+				} catch (SecurityException e) {
+					errorNumber = XmlResponse.EN_SECURITY_ERROR;
 				}
 			}
Index: /FCKeditor.Java/branches/2.4/src/main/java/net/fckeditor/response/XmlResponse.java
===================================================================
--- /FCKeditor.Java/branches/2.4/src/main/java/net/fckeditor/response/XmlResponse.java	(revision 1638)
+++ /FCKeditor.Java/branches/2.4/src/main/java/net/fckeditor/response/XmlResponse.java	(revision 1639)
@@ -49,4 +49,25 @@
 	private Element foldersElement;
 	private Element filesElement;
+	
+	/** Error number OK */
+	public static final int EN_OK = 0;
+	
+	/** Error number ERROR */
+	public static final int EN_ERROR = 1;
+
+	/** Error number ALREADY EXISTS */
+	public static final int EN_ALREADY_EXISTS = 101;
+
+	/** Error number INVALID */
+	public static final int EN_INVALID = 102;
+
+	/** Error number SECURITY ERROR */
+	public static final int EN_SECURITY_ERROR = 103;
+
+	/** Error number UNKNOWN ERROR */
+	public static final int EN_UKNOWN = 110;
+
+	/** Error message NOT AUTHORIZED FOR BROWSING */
+	public static final String CM_NOT_AUTHORIZED = "The current user isn't authorized for file browsing!";
 
 	/**
