code: function ModelAPIError(code, message, errors) {
    var err;
    if (message instanceof Error) err = message;
    else err = new Error(message);
    err.__proto__ = ModelAPIError.prototype;
    Object.defineProperty(err, 'code', {
      enumerable: true,
      value: code,
      writeable: false
    });
    if (typeof message === 'string') {
      Object.defineProperty(err, 'message', {
        enumerable: true,
        value: message,
        writeable: false
      });
    }
    if (errors) {
      Object.defineProperty(err, 'errors', {
        enumerable: true,
        value: errors,
        writeable: false
      });
    }
    return err;
  }
docs: @class ModelAPIError - extends Error
  
  @param  {Number|String}  code    the code should be transfered as HTTP-response code
  @param  {String|Error}   message the description of error
  @return {ModelAPIError}          the ModelAPIError