PitHub
HomeExplore
New pit
MCP serverSave straight from your agent
About usHow it worksFAQBlogContact us
Sign in
PitHub
Sign in
HomeExploreCreateSign in

Explore

Loading…

Explore

Tagged #api-design

ActiveNewMost usedRecommended
AllAI & Prompt Engineering324Engineering176Data & Analytics89Product4Design28Sales2Marketing4Finance24Strategy31Operations4Customer Success3People & Recruiting4Security & Compliance8Legal2Other Professional1
#api-designClear filters
TATalia Ibrahim@taliaibrahim·3w ago

API error handling, minus the vague advice

Not magic wording, just enough context and a clear definition of done. Easy to adapt.

Talia Ibrahim

Give me a short checklist for API error handling. I want something I can run before I call the work done.

Geminigemini-2.5-pro

Use this pass: - [ ] The goal is one sentence and names the user or decision - [ ] Inputs are current, relevant, and traceable - [ ] Assumptions are visible - [ ] Reproduce the failure before changing code - [ ] Keep the patch smaller than the diagnosis - [ ] Write the rollback before deployment - [ ] One failure case has been tested - [ ] The next owner and next action are clear If you cannot check an item, mark it unknown. Do not quietly treat unknown as done.

Show all 3 messages
3402.7k
TATalia Ibrahim@taliaibrahim·1mo ago

ChatGPT was overcomplicating API error handling, so I reset the question

The first answers were broad enough to be useless. This version asks for assumptions, evidence, and a next step.

Talia Ibrahim

Be blunt about my plan for API error handling. I am going to collect everything, ask for a polished answer, and fix details later. What is likely to go wrong?

ChatGPTgpt-5

Three things. - “Everything” has no boundary, so weak inputs and strong inputs will be treated alike. - A polished answer can hide missing evidence. Ask for gaps and assumptions before prose. - “Fix details later” means there is no acceptance test now. A safer sequence is: define the decision, choose the minimum trusted inputs, make an ugly first pass, check it, then polish. For this task, keep the patch smaller than the diagnosis.

Show all 3 messages
3401.3k
TATalia Ibrahim@taliaibrahim·3mo ago

I needed a usable answer on API error handling

I wanted help with API error handling without pretending the model knew facts I had not provided.

Talia Ibrahim

I am stuck on API error handling. I need to make API failures observable and useful without leaking internal details, but my current attempt is getting vague and too big. What would you check first?

Geminigemini-2.5-pro

First, shrink the decision. Do not solve the whole subject at once. 1. Reproduce the failure before changing code. 2. Keep the patch smaller than the diagnosis. 3. Write the rollback before deployment. Write down the result you need by the end of this session. Then choose one input you trust and make a first pass that can be checked. If that pass fails, you will know which assumption to revisit instead of starting over.

Show all 3 messages
3304.1k
TATalia Ibrahim@taliaibrahim·2mo ago

Forked from@elitran/ChatGPT was overcomplicating a reusable fact-check pass, so I reset the question

The question that cleaned up API error handling

Not magic wording, just enough context and a clear definition of done. Easy to adapt.

Talia Ibrahim

Help me make API failures observable and useful without leaking internal details. Context: - Goal: [what a good result lets me do] - Current situation: [paste notes, draft, data, or constraints] - Audience: [who will use the result] - Deadline or limit: [time, budget, tools, length] Before answering, ask up to three questions only if the answers would materially change your recommendation. Otherwi

Claudeclaude-opus-4.5

This is usable as written. The important parts are the definition of done, the instruction to expose assumptions, and the request for a smallest test. For API error handling, I would start with these checks: - Reproduce the failure before changing code - Keep the patch smaller than the diagnosis - Write the rollback before deployment If you share real material, remove anything private first and replace bracketed fields with concrete details.

Show all 3 messages
3401.4k
TATalia Ibrahim@taliaibrahim·3mo ago

I stopped guessing about API error handling

I kept the useful constraints and dropped the role-play. It works better when the missing details are stated plainly.

Talia Ibrahim

For API error handling, should I build a complete plan first or test one small slice? I have limited time and I do not want throwaway work.

Claudeclaude-opus-4.5

Test one slice, but choose a slice that crosses the riskiest part of the problem. A tiny easy demo will only prove the easy part. Use this decision rule: - If reversing the choice is cheap, try it. - If the choice locks in data, money, or other people’s time, write the full decision first. - If uncertainty is concentrated in one step, test that step before planning around it. For API error handling, make the first test produce evidence you can compare, not just something that looks complete.

Show all 3 messages
3301.4k

Browse by tag

#ai314#chatgpt211#claude208#gemini208#prompting182#agents174#context-engineering172#coding160
#debugging106
#software-learning100
#data85
#analysis55
#statistics55
#202650
#data-literacy50
#prompt-template50
#trending-questions50
#business25
#design25
#testing25
#automation21
#finance21
#cash-flow16
#research16