x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<div class="min-w-0 overflow-hidden rounded-lg border border-line bg-surface-subtle" data-json-lines> <div class="flex flex-wrap items-center justify-between gap-3 px-3 pt-2.5 pb-1"> <span class="font-mono text-xs text-ink-muted">Error envelope</span> <button type="button" class="inline-flex shrink-0 items-center gap-1.5 rounded-md text-sm text-ink-muted transition-colors hover:border-accent-line hover:text-ink border border-line-strong bg-surface px-2.5 py-1" data-controller="copy" data-action="copy#copy" data-copy-text-value="{ "search_metadata": { "id": "sample_error_quota", "status": "Error", "created_at": "2026-08-06T00:00:00Z", "request_time_taken": 0.05, "total_time_taken": 0.07, "sample": { "state": "quota_error", "shared": true, "provenance": "Authored in this sandbox without access to the live SearchApi endpoint. Shared across every documented engine, because a plan limit is decided before the engine is dispatched — which is why search_parameters is empty here rather than echoing an engine. Reached through the exhausted-key demo preset. Pending re-verification against the live API." } }, "search_parameters": {}, "error": "You have run out of searches on your current plan. Upgrade the plan or wait for the quota to reset."}" > <span class="inline-flex items-center gap-1.5" data-copy-target="idle"> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="size-4 shrink-0" aria-hidden="true"> <path d="M9 3.75h9a1.5 1.5 0 0 1 1.5 1.5v9" /><path d="M6 8.25h9a1.5 1.5 0 0 1 1.5 1.5v9a1.5 1.5 0 0 1-1.5 1.5H6a1.5 1.5 0 0 1-1.5-1.5v-9A1.5 1.5 0 0 1 6 8.25Z" /> </svg> <span>Copy JSON</span> </span> <span class="inline-flex items-center gap-1.5 text-ink" data-copy-target="done" role="status" hidden> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="size-4 shrink-0" aria-hidden="true"> <path d="M4.5 12.75 9 17.25l10.5-10.5" /> </svg> <span>Copied</span> </span> </button> </div> <div class="overflow-x-auto pt-1 pb-2"> <ol aria-label="Error envelope"> <li class="flex gap-3 px-3 font-mono text-xs leading-5"> <span class="w-8 shrink-0 text-right text-ink-faint select-none" aria-hidden="true">1</span> <span class="whitespace-pre"><span></span><span class="text-jv-punct">{</span></span> </li> <li class="flex gap-3 px-3 font-mono text-xs leading-5"> <span class="w-8 shrink-0 text-right text-ink-faint select-none" aria-hidden="true">2</span> <span class="whitespace-pre"><span> </span><span class="text-jv-key">"search_metadata"</span><span class="text-jv-punct">: </span><span class="text-jv-punct">{</span></span> </li> <li class="flex gap-3 px-3 font-mono text-xs leading-5"> <span class="w-8 shrink-0 text-right text-ink-faint select-none" aria-hidden="true">3</span> <span class="whitespace-pre"><span> </span><span class="text-jv-key">"id"</span><span class="text-jv-punct">: </span><span class="text-jv-str">"sample_error_quota"</span><span class="text-jv-punct">,</span></span> </li> <li class="flex gap-3 px-3 font-mono text-xs leading-5"> <span class="w-8 shrink-0 text-right text-ink-faint select-none" aria-hidden="true">4</span> <span class="whitespace-pre"><span> </span><span class="text-jv-key">"status"</span><span class="text-jv-punct">: </span><span class="text-jv-str">"Error"</span><span class="text-jv-punct">,</span></span> </li> <li class="flex gap-3 px-3 font-mono text-xs leading-5"> <span class="w-8 shrink-0 text-right text-ink-faint select-none" aria-hidden="true">5</span> <span class="whitespace-pre"><span> </span><span class="text-jv-key">"created_at"</span><span class="text-jv-punct">: </span><span class="text-jv-str">"2026-08-06T00:00:00Z"</span><span class="text-jv-punct">,</span></span> </li> <li class="flex gap-3 px-3 font-mono text-xs leading-5"> <span class="w-8 shrink-0 text-right text-ink-faint select-none" aria-hidden="true">6</span> <span class="whitespace-pre"><span> </span><span class="text-jv-key">"request_time_taken"</span><span class="text-jv-punct">: </span><span class="text-jv-num">0.05</span><span class="text-jv-punct">,</span></span> </li> <li class="flex gap-3 px-3 font-mono text-xs leading-5"> <span class="w-8 shrink-0 text-right text-ink-faint select-none" aria-hidden="true">7</span> <span class="whitespace-pre"><span> </span><span class="text-jv-key">"total_time_taken"</span><span class="text-jv-punct">: </span><span class="text-jv-num">0.07</span><span class="text-jv-punct">,</span></span> </li> <li class="flex gap-3 px-3 font-mono text-xs leading-5"> <span class="w-8 shrink-0 text-right text-ink-faint select-none" aria-hidden="true">8</span> <span class="whitespace-pre"><span> </span><span class="text-jv-key">"sample"</span><span class="text-jv-punct">: </span><span class="text-jv-punct">{</span></span> </li> <li class="flex gap-3 px-3 font-mono text-xs leading-5"> <span class="w-8 shrink-0 text-right text-ink-faint select-none" aria-hidden="true">9</span> <span class="whitespace-pre"><span> </span><span class="text-jv-key">"state"</span><span class="text-jv-punct">: </span><span class="text-jv-str">"quota_error"</span><span class="text-jv-punct">,</span></span> </li> <li class="flex gap-3 px-3 font-mono text-xs leading-5"> <span class="w-8 shrink-0 text-right text-ink-faint select-none" aria-hidden="true">10</span> <span class="whitespace-pre"><span> </span><span class="text-jv-key">"shared"</span><span class="text-jv-punct">: </span><span class="text-jv-bool">true</span><span class="text-jv-punct">,</span></span> </li> <li class="flex gap-3 px-3 font-mono text-xs leading-5"> <span class="w-8 shrink-0 text-right text-ink-faint select-none" aria-hidden="true">11</span> <span class="whitespace-pre"><span> </span><span class="text-jv-key">"provenance"</span><span class="text-jv-punct">: </span><span class="text-jv-str">"Authored in this sandbox without access to the live SearchApi endpoint. Shared across every documented engine, because a plan limit is decided before the engine is dispatched — which is why search_parameters is empty here rather than echoing an engine. Reached through the exhausted-key demo preset. Pending re-verification against the live API."</span></span> </li> <li class="flex gap-3 px-3 font-mono text-xs leading-5"> <span class="w-8 shrink-0 text-right text-ink-faint select-none" aria-hidden="true">12</span> <span class="whitespace-pre"><span> </span><span class="text-jv-punct">}</span></span> </li> <li class="flex gap-3 px-3 font-mono text-xs leading-5"> <span class="w-8 shrink-0 text-right text-ink-faint select-none" aria-hidden="true">13</span> <span class="whitespace-pre"><span> </span><span class="text-jv-punct">}</span><span class="text-jv-punct">,</span></span> </li> <li class="flex gap-3 px-3 font-mono text-xs leading-5"> <span class="w-8 shrink-0 text-right text-ink-faint select-none" aria-hidden="true">14</span> <span class="whitespace-pre"><span> </span><span class="text-jv-key">"search_parameters"</span><span class="text-jv-punct">: </span><span class="text-jv-punct">{}</span><span class="text-jv-punct">,</span></span> </li> <li class="flex gap-3 px-3 font-mono text-xs leading-5"> <span class="w-8 shrink-0 text-right text-ink-faint select-none" aria-hidden="true">15</span> <span class="whitespace-pre"><span> </span><span class="text-jv-key">"error"</span><span class="text-jv-punct">: </span><span class="text-jv-str">"You have run out of searches on your current plan. Upgrade the plan or wait for the quota to reset."</span></span> </li> <li class="flex gap-3 px-3 font-mono text-xs leading-5"> <span class="w-8 shrink-0 text-right text-ink-faint select-none" aria-hidden="true">16</span> <span class="whitespace-pre"><span></span><span class="text-jv-punct">}</span></span> </li> </ol> </div></div>1
2
3
4
render JsonLinesComponent.new( data: SampleResponse.resolve(engine: "google", preset: "exhausted").payload, label: "Error envelope")The error envelope is the same rendering. Sharing it is what lets all seven states be one presentation instead of two families of screen.
No params configured.