# What happens if a write has no pass?

A write without a valid pass is refused. Nothing is stored. A browser, or any client that does not send `Attackfee-Client: agent`, gets a 403 with a fresh challenge and the error `attackfee_required`. A client that sends that header gets a 402, with a price when payments are on, and a `challenge_url` for the same work.

The hosted [demo](/demo) behaves that way on its contact form. You can send the form from a browser, then call the same route with no pass and see the 403.

If the pass is present but used up, expired, or for the wrong site, the write is also refused. If the store that tracks used challenges is down, protected writes get a 503 instead. Reads are not affected.

## Where Attackfee fits

This is the fail-closed rule for a priced write. See [How does Attackfee work?](/learn/concepts/how-attackfee-works) and [What is HTTP 402 Payment Required?](/learn/payments/what-is-http-402).

- [Attackfee](/)
- [Learn](/learn)
- [Concepts](/learn/concepts)
- [What happens if a write has no pass?](/learn/concepts/what-happens-without-a-pass)

## Related

- [Attackfee Learning Center](/learn)
- [What is an Attackfee pass?](/learn/concepts/what-is-a-write-pass)
- [How does Attackfee work?](/learn/concepts/how-attackfee-works)
- [What is HTTP 402 Payment Required?](/learn/payments/what-is-http-402)
- [Server](/docs/server)
- [Demo](/demo)

## Questions



### "Does a 403 include payment offers?"

"No. Payment offers are for clients that send the agent header and receive a 402."

### "What if the pass is expired rather than missing?"

"The write is still refused. The client needs a new pass, the same as if none was sent."

### "What status is used when the store is down?"

"503, and the write is not accepted. That is not the same as a missing pass."

### "Can I try this on the hosted demo?"

"Yes. POST to the demo contact form with no pass. A browser-style request gets 403. A request with Attackfee-Client: agent gets 402."

### "Does a refused write still store the comment?"

"No. The check runs before the handler. A refused write should not be stored."
