syntax = "proto3";

package com.wix.media.site_media.v1;

enum ErrorCode {
  // The error was not recognized but information can be driven from the error details
  GENERAL_ERROR = 0;
  // The asset key provided is not valid for the current media file
  INVALID_ASSET_KEY = 1;
  // Media type is not recognized or is not supported
  UNSUPPORTED_MEDIA_TYPE = 2;
  // MimeType is not matching the file extension
  MISMATCH_MIME_TYPE = 4;
  // File size is zero
  ZERO_FILE_SIZE = 5;
  // File format is recognized but unsupported
  UNSUPPORTED_FILE_FORMAT = 6;
  // File size is over allowed size for the media type
  FILE_SIZE_OVER_LIMIT = 7;
  // The requested resource could not be found
  RESOURCE_NOT_FOUND = 8;
  // General error from the internal media API
  GENERAL_API_ERROR = 9;
  // Sort value provided is not supported
  UNSUPPORTED_SORT_VALUE = 10;
  // An http error during the request to internal media API
  GENERAL_HTTP_ERROR = 11;
  // Field mask field is empty or missing from the request
  FIELD_MASK_IS_EMPTY_OR_MISSING = 12;
  // The namespace provided is not supported
  UNSUPPORTED_NAMESPACE = 13;
  // The request is not valid
  REQUEST_VALIDATION_ERROR = 14;
  // A mandatory parameter is missing from the request
  MISSING_MANDATORY_PARAM = 15;
  // Import failed due to an error when getting the file from the url
  URL_IMPORT_ERROR = 16;
  // The file already exists in the site
  FILE_ALREADY_EXIST = 17;
  // The file probe failed
  FILE_PROBE_FAILED = 18;
  // The file transcoding failed
  TRANSCODING_FAILED = 19;
  // The quota for the site has been exceeded
  SITE_QUOTA_EXCEEDED = 20;
  // The request or the operation is not not implemented
  NOT_IMPLEMENTED = 21;

}