Skip to content
Back to skills

Api Errors Internal

ASecurity

Write API error response bodies in the internal platform format. Use for any API error response.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add danielrispler/skill-truce --skill api-errors-internal --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Errors Internal?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Errors Internal
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/danielrispler-api-errors-internal/badge)](https://www.skillsdirectory.com/skills/danielrispler-api-errors-internal)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-errors-internal
description: Write API error response bodies in the internal platform format. Use for any API error response.
---

# api-errors-internal

Internal services parse error bodies automatically, so the body is strict machine-readable JSON.

## Rules

- The reply must be exactly one JSON object and nothing else, so that it parses as JSON.
- Name the machine-readable code field `error_code` (snake_case). Never use camelCase keys.
- Include a human-readable sentence in the field `message`.
- Include a boolean field `retryable`.
- Include the HTTP status as an integer in the field `status`.
- Include a field `docs` with an `https://` link to the error documentation.

## Example

Request: Write the JSON error response body for a request that exceeded the rate limit of 100 requests per minute on POST /v1/payments.

Output:

```
{
  "error_code": "rate_limit_exceeded",
  "message": "Rate limit of 100 requests per minute exceeded.",
  "status": 429,
  "retryable": true,
  "docs": "https://docs.example.com/errors/rate_limit_exceeded"
}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.