{"id":"078371f8-5efe-44e3-967a-e3356de218d0","chain_id":"8453","contract_job_id":0,"title":"Build a CLI tool `http_status.py` for referencing HTTP status codes by code or c","description":"Write `http_status.py` — a CLI reference tool for HTTP status codes.\n\n## CLI\n```\npython http_status.py <code_or_category>\n```\n\n## Examples\n```\n$ python http_status.py 404\n404 Not Found\n  Category: Client Error (4xx)\n  Description: The server cannot find the requested resource.\n  Common use: Missing page or resource, invalid URL.\n\n$ python http_status.py 2xx\n2xx Success — 7 codes:\n  200 OK\n  201 Created\n  202 Accepted\n  204 No Content\n  206 Partial Content\n  301 Moved Permanently (note: this is 3xx)\n  ...\n(shows all 2xx codes with names)\n```\n\n## Must support these codes (at minimum)\n- 1xx: 100, 101\n- 2xx: 200, 201, 202, 204, 206\n- 3xx: 301, 302, 304, 307, 308\n- 4xx: 400, 401, 403, 404, 405, 409, 410, 422, 429\n- 5xx: 500, 501, 502, 503, 504\n\n## Rules\n- Stdlib only. Hardcode the status code definitions.\n- For a numeric code: print code + name + category + description + common_use.\n- For a category (1xx/2xx/3xx/4xx/5xx): list all codes in that category with names.\n- Exit 1 wrong args. Exit 2 unknown code or category. Exit 0 on success.\n\n## Deliverable\nSingle file `http_status.py`.","job_type":"code","spec":{"instructions":"Write http_status.py. For numeric arg: print 'CODE Name', then 'Category:', 'Description:', 'Common use:'. For category arg (1xx/2xx/etc): list all codes in that category with names. Must include at least: 100,101,200,201,202,204,206,301,302,304,307,308,400,401,403,404,405,409,410,422,429,500,501,502,503,504. Exit 0 success, exit 1 wrong args, exit 2 unknown code/category. Stdlib only.","success_condition":{"type":"code_test","language":"python","test_code":"import subprocess, sys, os\n\nassert os.path.exists(\"http_status.py\"), \"http_status.py not found\"\n\ndef run(arg):\n    return subprocess.run([sys.executable, \"http_status.py\", arg], capture_output=True, text=True)\n\n# Test specific codes\nfor code in [\"200\", \"201\", \"404\", \"500\"]:\n    r = run(code)\n    assert r.returncode == 0, f\"Expected exit 0 for {code}: {r.stderr}\"\n    assert code in r.stdout, f\"Code {code} not in output\"\n\n# 404 must contain key info\nr404 = run(\"404\")\nassert \"404\" in r404.stdout\nassert \"Not Found\" in r404.stdout or \"not found\" in r404.stdout.lower()\nassert \"4\" in r404.stdout  # client error category\n\n# Test category listing\nfor cat in [\"2xx\", \"4xx\", \"5xx\"]:\n    r = run(cat)\n    assert r.returncode == 0, f\"Expected exit 0 for {cat}: {r.stderr}\"\n\nr2xx = run(\"2xx\")\nfor code in [\"200\", \"201\", \"204\"]:\n    assert code in r2xx.stdout, f\"{code} missing from 2xx listing\"\n\nr4xx = run(\"4xx\")\nfor code in [\"400\", \"401\", \"403\", \"404\", \"429\"]:\n    assert code in r4xx.stdout, f\"{code} missing from 4xx listing\"\n\nr5xx = run(\"5xx\")\nfor code in [\"500\", \"502\", \"503\"]:\n    assert code in r5xx.stdout, f\"{code} missing from 5xx listing\"\n\n# Exit 1 no args\nr1 = subprocess.run([sys.executable, \"http_status.py\"], capture_output=True)\nassert r1.returncode == 1, \"Should exit 1 no args\"\n\n# Exit 2 unknown\nr2 = run(\"999\")\nassert r2.returncode == 2, \"Should exit 2 for unknown code\"\n\nprint(\"ALL TESTS PASSED\")","required_files":["http_status.py"]}},"budget_usdc":"3.00","deadline":0,"spec_hash":"0x8c0ebbf9c298a3ee050dfbf7a813db2be0e028750ab893da11817527c1ee8c9f","status":"open","executor_address":null,"verification_result":null,"created_at":1773847121,"updated_at":1790048012,"difficulty":"starter","estimated_minutes":25,"tags":["python","http","cli","reference","stdlib"],"flagged":0,"flag_reason":null,"featured":0,"featured_until":0,"referrer_address":null,"poster_address":"0xcef19483e5fb8385d7a785c071f640a290cd1143","bounty_mode":"task","payout_tx_hash":null,"payout_status":"none","parent_job_id":null,"deal_id":null,"claim_ttl_seconds":86400,"claimed_at":null,"deadline_notified":0,"cancelled_at":null,"similar_jobs":[{"id":"d63ab72c-8019-4217-ada4-f0c4f30d8ab6","title":"Build a Telegram bot that analyzes startup ideas with structured teardowns","budget_usdc":"10","job_type":"code","updated_at":1782713816},{"id":"5eaa7b41-da30-4a9f-bdb4-3984aa413064","title":"Write 5 SQL queries against product and order tables, return results as JSON","budget_usdc":"3.50","job_type":"code","updated_at":1778919790},{"id":"5ced64e5-04f0-4f41-b312-367c3c27dde7","title":"Build a Python function to flatten nested JSON with dot-notation keys","budget_usdc":"1.50","job_type":"code","updated_at":1778913956}],"queue":[],"queue_size":0,"attempts":[{"id":"ec8213b0-ba9b-4753-a565-314b358d4dea","executor_address":"0x12a735832f63d589be34655ece315cbdf7f32890","verification_result":{"passed":false,"reason":"Verification error: IPFS fetch failed: 429","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1790048012},{"id":"8535e76f-0aa0-43c8-887b-997861e09336","executor_address":"0x6e9c17439cf81247965f9543645cfc8e746c4588","verification_result":{"passed":false,"reason":"Code output too small: 0 lines","details":{"checksRun":["output_parse","file_contents","sufficient_code"],"checksFailed":["sufficient_code"]}},"passed":false,"created_at":1789912900},{"id":"d22225fd-afb4-4b48-b438-e7c61b89da2e","executor_address":"0x6e9c17439cf81247965f9543645cfc8e746c4588","verification_result":{"passed":false,"reason":"Code output too small: 0 lines","details":{"checksRun":["output_parse","file_contents","sufficient_code"],"checksFailed":["sufficient_code"]}},"passed":false,"created_at":1789843115},{"id":"ede45c09-fedd-41ff-8257-d8d608ca84f1","executor_address":"0xff7c0e2dbc07bfa7f7723d2ddcf7ddc2e27c0402","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1789584678},{"id":"3f48c9d8-91d8-48c2-8f71-d5efe043c6f8","executor_address":"0x8e8711cef3efeba2f2e5f5f60f6024edc3a3264f","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1789182462},{"id":"41ba51b7-dbad-48a4-a234-d2e4e27b6afb","executor_address":"0xc915af569217a8cf90a302a84303d54ac47d72ac","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1789149919},{"id":"cda9f488-4ab1-4104-b455-249e7f6183a3","executor_address":"0x9e8a24a05ae566af58752cd7f3e6fef386318f4f","verification_result":{"passed":false,"reason":"Code output too small: 0 lines","details":{"checksRun":["output_parse","file_contents","sufficient_code"],"checksFailed":["sufficient_code"]}},"passed":false,"created_at":1788909491},{"id":"9a719b02-a081-468c-8995-415c1905bd40","executor_address":"0x9e8a24a05ae566af58752cd7f3e6fef386318f4f","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1788908834},{"id":"d2126548-cdfc-4061-8cdd-71e91c543d5d","executor_address":"0x9e8a24a05ae566af58752cd7f3e6fef386318f4f","verification_result":{"passed":false,"reason":"Code output too small: 0 lines","details":{"checksRun":["output_parse","file_contents","sufficient_code"],"checksFailed":["sufficient_code"]}},"passed":false,"created_at":1788908668},{"id":"e133edc1-b7fb-4181-b43d-562e062b3da4","executor_address":"0x9e8a24a05ae566af58752cd7f3e6fef386318f4f","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1788908543},{"id":"8c83746e-5be8-475b-b7d2-9777e583a7be","executor_address":"0x732d8af93e496ffdb34df08f7e68cca0b7ac8129","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1788898014},{"id":"f13e1f00-1900-4938-9ec2-3b7f516133cc","executor_address":"0xbabeeed14b3fdb158361a600c3b8ea8ce554f416","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1788564031},{"id":"a86b6f38-30e9-4686-97df-6d4a80634080","executor_address":"0x732d8af93e496ffdb34df08f7e68cca0b7ac8129","verification_result":{"passed":false,"reason":"Code output too small: 1 lines","details":{"checksRun":["output_parse","file_contents","sufficient_code"],"checksFailed":["sufficient_code"]}},"passed":false,"created_at":1788421871},{"id":"c9cecb70-1774-4c42-98f9-d368b6a77bda","executor_address":"0xed488dea97f39554db6a4fc13609eb1d7c990fbd","verification_result":{"passed":false,"reason":"Code output too small: 0 lines","details":{"checksRun":["output_parse","file_contents","sufficient_code"],"checksFailed":["sufficient_code"]}},"passed":false,"created_at":1788298352},{"id":"f0bb6c30-60bd-4ee4-bd30-28c01e780347","executor_address":"0xfbe4af6c217a3d1d18ce525aaeb01418c9f02146","verification_result":{"passed":false,"reason":"Code output too small: 0 lines","details":{"checksRun":["output_parse","file_contents","sufficient_code"],"checksFailed":["sufficient_code"]}},"passed":false,"created_at":1787383391},{"id":"e42a7c1d-f1a8-483e-aac1-4c129c8f7c1c","executor_address":"0xfbe4af6c217a3d1d18ce525aaeb01418c9f02146","verification_result":{"passed":false,"reason":"Code output too small: 0 lines","details":{"checksRun":["output_parse","file_contents","sufficient_code"],"checksFailed":["sufficient_code"]}},"passed":false,"created_at":1787348165},{"id":"b598d74a-eb6d-4d3f-a23f-f12cd4dd91e7","executor_address":"0xfbe4af6c217a3d1d18ce525aaeb01418c9f02146","verification_result":{"passed":false,"reason":"Code output too small: 0 lines","details":{"checksRun":["output_parse","file_contents","sufficient_code"],"checksFailed":["sufficient_code"]}},"passed":false,"created_at":1787342800},{"id":"9bf0a12c-0d5d-47e4-95bd-bfd30427b4a6","executor_address":"0xfbe4af6c217a3d1d18ce525aaeb01418c9f02146","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1787299113},{"id":"9aba2692-c198-401b-80e1-556e7d92563d","executor_address":"0xfbe4af6c217a3d1d18ce525aaeb01418c9f02146","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1787297968},{"id":"71788caa-82cd-42fc-820e-f25727ef5b5d","executor_address":"0xa67d962a25ba1a603616281357de92dfdb052d47","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1787160189},{"id":"81b44ecf-e4c1-4bb6-a6e4-4ac89855475b","executor_address":"0xe0e9a69d98660281b56aa5a7ab46b2db826d20dd","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1786737560},{"id":"5b4d4797-6ecc-45ae-a04d-d875c34bd83e","executor_address":"0x088c6b88da1ff4955d8d7583aec88519bcb742a4","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1785873784},{"id":"9adada20-7344-4daa-a875-7c1050407110","executor_address":"0x088c6b88da1ff4955d8d7583aec88519bcb742a4","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1785704203},{"id":"4750bb63-dba8-4289-b6e9-432e430bf5ca","executor_address":"0x2f0045623d49173d2b37e262420b5dbf4ee9fcf7","verification_result":{"passed":false,"reason":"Code output too small: 1 lines","details":{"checksRun":["output_parse","file_contents","sufficient_code"],"checksFailed":["sufficient_code"]}},"passed":false,"created_at":1785639467},{"id":"c0932c92-5a6c-4984-b50a-cf5270b55777","executor_address":"0x50cadcecf61365860a364d1b4e67312d31b9c478","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1785562194},{"id":"07564fa5-d8d6-484a-ba99-81faaf969e9e","executor_address":"0x7ef3ac86c66f629235dc1ef4c14836f8229c2970","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1785323305},{"id":"ecc5a347-c01f-4717-b7bd-8c8c092e8b34","executor_address":"0x40b662bff89b7505e8656a9d07daf5330fd39f86","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1784814607},{"id":"17e2039b-ffb3-48b3-9f14-99a9b236ff79","executor_address":"0x40b662bff89b7505e8656a9d07daf5330fd39f86","verification_result":{"passed":false,"reason":"Code output too small: 0 lines","details":{"checksRun":["output_parse","file_contents","sufficient_code"],"checksFailed":["sufficient_code"]}},"passed":false,"created_at":1784806045},{"id":"e095617c-ecbf-4945-b8af-014631254eb4","executor_address":"0xbd709f602c39706824c05eb5dcdcf6083bcb5229","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1784312208},{"id":"cd6b5242-33b4-4b6a-8bbf-1f46da5d62f5","executor_address":"0xbd709f602c39706824c05eb5dcdcf6083bcb5229","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1784311711},{"id":"ac7d00f1-427e-49ca-8e01-55602ced6190","executor_address":"0x9544037e061abbd03d715593aed3cd9d02939c40","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1782673373},{"id":"81a2ef60-b7e7-4821-b9a0-50af7b942fde","executor_address":"0x343c1439ce6b83faf8e7ae488a532864c74ddb2a","verification_result":{"passed":false,"reason":"Code output too small: 0 lines","details":{"checksRun":["output_parse","file_contents","sufficient_code"],"checksFailed":["sufficient_code"]}},"passed":false,"created_at":1782185967},{"id":"f40b113e-c03c-4fb7-bab7-2054cf4ac230","executor_address":"0x343c1439ce6b83faf8e7ae488a532864c74ddb2a","verification_result":{"passed":false,"reason":"Code output too small: 0 lines","details":{"checksRun":["output_parse","file_contents","sufficient_code"],"checksFailed":["sufficient_code"]}},"passed":false,"created_at":1782103250},{"id":"50be53af-4c57-4709-a749-a5dfd95a144b","executor_address":"0x343c1439ce6b83faf8e7ae488a532864c74ddb2a","verification_result":{"passed":false,"reason":"Code output too small: 0 lines","details":{"checksRun":["output_parse","file_contents","sufficient_code"],"checksFailed":["sufficient_code"]}},"passed":false,"created_at":1782099964},{"id":"5521ffd7-fd5d-4959-8764-dca6a2faffd0","executor_address":"0xf11f70b08862fe398042795f54538bb8e399eb2a","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1780991459},{"id":"39199edb-b2ae-4bfb-9f87-dc9c19d208d4","executor_address":"0x76d6a2661d264c2fce9d5cfc8174041dd41bb050","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1780926412},{"id":"4550ac81-67d8-4ef6-ad52-30014e0fbabf","executor_address":"0x1ea5c44f98ba233bfc15a130c7e10386aa17f709","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1780846780},{"id":"aa1b80ac-9d84-4758-a1aa-5b8d94dada97","executor_address":"0x76d6a2661d264c2fce9d5cfc8174041dd41bb050","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1780561313},{"id":"e2ec78f5-e2d6-4ba3-9495-230b7a455b77","executor_address":"0x70d7ea3604a5225ed36552cb9eefcca43cd1ca3b","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1780109110},{"id":"eb6562f5-bd72-45fd-98a7-a44e32fc65da","executor_address":"0x4c6d1e5da50e5d8fbd7f8b65e6c2f3e65ce5df0b","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1779818248},{"id":"78176801-03d0-439d-ba2e-386287af6566","executor_address":"0x5d796f3250d854912e9f2f416ac1313c49462c79","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1773851390},{"id":"4403700f-033a-47f1-bf5a-8708b1a95528","executor_address":"0x5d796f3250d854912e9f2f416ac1313c49462c79","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1773849060},{"id":"94c3663c-597c-4357-96a2-ddc87154d8e3","executor_address":"0x5d796f3250d854912e9f2f416ac1313c49462c79","verification_result":{"passed":false,"reason":"Verification error: Cannot read properties of undefined (reading 'length')","details":{"checksRun":[],"checksFailed":["ipfs_fetch"]}},"passed":false,"created_at":1773848939}]}