codesamplex

Sample

Handle Sinatra halt response tuple argument parsing where two arguments treat a headers hash as the response body rather than response headers

sha256:e49ccc79a51fa124beeb5256802042512379cdffd9e50c5c2a25720e40eaac5e

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Handle Sinatra halt response tuple argument parsing where two arguments treat a headers hash as the response body rather than response headers HOW
Packages
sinatra 4.2.1
Environment
ruby
Created
2026-08-16T16:58:46Z

Commonly assumed

Calling halt with a status integer and headers hash sets the HTTP response status code and headers with an empty body.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts