# Cloud Storage: 404 Not Found — The specified bucket does not exist / No such object: bucket/object

**Code:** `NoSuchBucket / 404 The specified bucket does not exist` · **Category:** Google Cloud / Firebase · **Seen on:** Google Cloud

The bucket or object name in your request doesn't exist (typo, deleted, wrong project, or a leading slash issue).

## Meaning

Check the exact name (bucket names are global and case-sensitive; objects can contain slashes but no real folders). Confirm with `gcloud storage ls`. For website hosting, `NoSuchKey` pages appear when `index.html` or `404.html` is not configured.

## Common causes

- Bucket name typo or deleted bucket
- Object name wrong/with leading slash
- Using the wrong project's credentials
- Eventually consistent listing right after delete
- Website config missing main page

## Quick fix

1. List: `gcloud storage ls gs://BUCKET/`
2. Verify object path exactly
3. Set website config: `gsutil web set -m index.html -e 404.html gs://BUCKET`

## Detailed fix by platform

### gcloud

1. `gcloud storage ls gs://BUCKET/path/`

## How to diagnose

1. **Bucket** — Exists?
2. **Object** — Exact name?
3. **Project** — Correct credentials?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/gcp/gcs-nosuchbucket-404)
