Errors

List of error codes and messages

No URL or file was providedCopied!

Add at least one prop

{
  "error": {
    "message": "Either URL or file must be provided.",
    "code": "MISSING_URL_OR_FILE",
    "statusCode": 400,
  },
};

Both the URL and file providedCopied!

Remove URL or file prop

{
  "error": {
    "message": "Only URL or file must be provided, not both.",
    "code": "BOTH_URL_AND_FILE_PROVIDED",
    "statusCode": 400,
  },
};

Failed to upload the fileCopied!

Try again, or replace the file

{
  "error": {
    "message": "Failed to upload file to bucket.",
    "code": "UPLOAD_FAILED",
    "statusCode": 400,
  },
};

Unable to recognize the fileCopied!

Try again, or replace the file

{
  "error": {
    "message": "Invalid URL or file.",
    "code": "INVALID_URL_OR_FILE",
    "statusCode": 400,
  },
};

Failed to parse the URLCopied!

Link is broken, replace it and try again

{
  "error": {
    "message": "Invalid URL.",
    "code": "INVALID_URL",
    "statusCode": 400,
  },
};

Failed to download the YouTube videoCopied!

Try again or another video

{
  "error": {
    "message": "Failed to download YouTube video.",
    "code": "YOUTUBE_DOWNLOAD_FAILED",
    "statusCode": 400,
  },
};