/*   Copyright (c) 2015 Magnet Systems, Inc.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package com.magnet.mmx.protocol;

/**
 * Status code from MMX server.
 */
public interface StatusCode {
  public final static int SUCCESS = 200;
  public final static int BAD_REQUEST = 400;
  public final static int FORBIDDEN = 403;
  public final static int NOT_FOUND = 404;
  public final static int NOT_ACCEPTABLE = 406;
  public final static int CONFLICT = 409;
  public final static int GONE = 410;
  public final static int INTERNAL_ERROR = 500;
  public final static int NOT_IMPLEMENTED = 501;
}

@@ -720,91 +720,509 @@
 %7B%0A  
-public final static int SUCCESS = 200;%0A  public final static int BAD_REQUEST = 400;
+/**%0A   * Unknown status code.%0A   */%0A  public final static int UNKNOWN = 0;%0A  /**%0A   * The request is success.%0A   */%0A  public final static int SUCCESS = 200;%0A  /**%0A   * The entity is created.%0A   */%0A  public final static int CREATED = 201;%0A  /**%0A   * The request has malformed syntax.%0A   */%0A  public final static int BAD_REQUEST = 400;%0A  /**%0A   * The request requires user authentication.%0A   */%0A  public final static int UNAUTHORIZED = 401;%0A  /**%0A   * Insufficient rights to perform the operation.%0A   */
 %0A  p
@@ -1261,16 +1261,56 @@
  = 403;%0A
+  /**%0A   * Resource is not found.%0A   */%0A
   public
@@ -1350,181 +1350,534 @@
 ;%0A  
-public final static int NOT_ACCEPTABLE = 406;%0A  public final static int CONFLICT = 409;%0A  public final static int GONE = 410;%0A  public final static int INTERNAL_ERROR = 500;
+/**%0A   * The request contains an unacceptable data.%0A   */%0A  public final static int NOT_ACCEPTABLE = 406;%0A  /**%0A   * The entity already exists.%0A   */%0A  public final static int CONFLICT = 409;%0A  /**%0A   * The entity is no longer available at the server.%0A   */%0A  public final static int GONE = 410;%0A  /**%0A   * The request is too large.%0A   */%0A  public final static int REQUEST_TOO_LARGE = 413;%0A  /**%0A   * Internal server error.%0A   */%0A  public final static int INTERNAL_ERROR = 500;%0A  /**%0A   * The feature is not implemented.%0A   */
 %0A  p

Add more status code for better error handling.