What is a response — CCA-F Exam Prep

PencilPrepPencilPrep
L0.14|What is a response
1/12
Mystery
A person at their mailbox holding two envelopes. One is thick and has a green checkmark stamp. The other is thin with a red 'RETURN TO SENDER' stamp. Both came from the same company. Same mailbox, very different outcomes.

You send a letter to a company.

3 weeks later, an envelope arrives. Inside: either what you asked for, or a note saying 'we don't know what you're talking about.'

That return envelope is a response. And every response has a status: success, not found, error. You don't get to choose which one comes back. You only get to read what it says.

Every request gets a response. The status code tells you what happened before you open the envelope.