HarperFast / HarperFast/harper

Configurable error response verbosity (verbose / standard / limited)

Open
#829 0 comments 0 reactions 0 assignees View on GitHub
area:rest-api enhancement from-jira
Dominant language
JavaScript
Stars
89
Forks
10
Avg merge
2d 6h
Merged PRs (30d)
200

Description

## Request

Allow operators to configure how much error detail is returned in HTTP responses:

- **`verbose`** — full stack traces (default for dev mode)
- **`standard`** — current behavior: `error.toString()` (constructor + message)
- **`limited`** — for non-500 errors without a status code, return only the error code/constructor; otherwise use `standard`

Useful for production deployments where internal error details should not be exposed to clients.

🤖 Filed by Claude on behalf of Kris.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.