Skip to content
PromptVan
Sign In

Friendly API Error Messages

By @mr_mbeki_chem ยท May 4, 2026

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.

Browse code generation prompts โ†’

Reviews

-

0 reviews

Comments (0)

?

AI Model

claude-sonnet-4

Category

code-generation

Visibility

public

Last Updated

Jul 3, 2026

Variables

None

Tip: {error} (single braces) marks a variable; {{error}} is read as an include, not a variable.