Friendly API Error Messages
By @mr_mbeki_chem ยท
15 likes8 forks0 comments
Description
Rewrites raw error codes into messages a user understands, with a next step. Keeps the technical detail in a separate log line.
Prompt
Rewrite the error below into a user-facing message: what happened (plain language), what they can do next, and reassurance it's recoverable if it is. Then give a separate one-line technical log message for developers. No blame, no jargon in the user message.
Error:
{{error}}How to use
Copy the prompt and paste it into your AI tool of choice. It works best with claude-sonnet-4. See more code generation prompts for related workflows.
Reviews
-
0 reviews