Read a toy response

Open app View repo

Write a JSON object with role and content.

Pretend the status is 200 and parse it.

Pretend the status is 401 and stop before you treat the body as an answer.

Sources and go deeper

sources.json