Skip to content

C3 Request and client decisions

10 minSuggested first: L18 Authentication and authorization

Outcome

Use separate evidence for input rejection, permission, and an upstream timeout.

The case

A toy endpoint parses a decimal item id and rejects non-numeric input with 400. It then checks ownership using an already authenticated session: a valid user who isn't the owner gets 403, before any upstream call. Finally it reads an upstream service. An upstream timeout says only that the local caller didn't get a result before its deadline.

Each item has one accepted answer and can be retried; after a miss, the review link names the lesson to revisit.

Checkpoint items

1. Input

Counts toward completion

For the id "abc", where does the path first stop?

Choose one answer

2. Permission

Counts toward completion

A signed-in user who doesn't own item 42 sends the id "42". What happens?

Choose one answer

3. Timing

Counts toward completion

An authorized upstream call times out. What do you know?

Choose one answer

Review

For each item, say which rule decided it. If your explanation assumes a behavior the case doesn't state, rewrite it from the stated evidence.