---
title: "tRPC -- Error Handling - Air Market"
description: "When a call to your tRPC server fails, the person on the other end needs to know why, and you need to see it happen. This helps you throw errors with a clear code such as not found or unauthorized, s…"
canonical: "https://airmarket.ai/app/error-handling"
---

[Air Market](/) / [Developer Tools](/category/devtools) / tRPC -- Error Handling

Skill by [tRPC](/@trpc)

# tRPC -- Error Handling

Make tRPC failures clear to the client and easy to trace

## What this does

When a call to your tRPC server fails, the person on the other end needs to know why, and you need to see it happen. This helps you throw errors with a clear code such as not found or unauthorized, shape how validation errors reach the client, handle all errors in one spot, and turn them into matching HTTP status codes.

### Top 3 things it does for you

- Throw an error that says what went wrong
- Show validation errors on the client
- Catch every server error in one place

## Information

**tRPC -- Error Handling at a glance**

|  |  |
| --- | --- |
| Kind | Skill |
| Publisher | [tRPC](/@trpc) |
| Category | [Developer Tools](/category/devtools) |
| Works with | Agent Skills - an open standard supported by 40+ agents |
| Size | 6 KB |
| Licence | MIT |
| Repository | [trpc/trpc](https://github.com/trpc/trpc/tree/23c723cfeaf07da28a52a5c35c3dcccf96a47578/packages/server/skills/error-handling) |
| GitHub stars | 40,541 (as of Nov 2026) |

## Security report

**Verified.** AIR scanned this exact version of tRPC -- Error Handling and flagged nothing. AIR's verdict: **safe**.

**What tRPC -- Error Handling's check was run against**

|  |  |
| --- | --- |
| Commit | 23c723cfeaf07da28a52a5c35c3dcccf96a47578 |
| Content hash | 8a30ac6965e6cb53e8e6bdaa3413b045b79a2a18056c7eef70907f69522dc1ec |
| Files read | [Browse the files at this exact commit](https://github.com/trpc/trpc/blob/23c723cfeaf07da28a52a5c35c3dcccf96a47578/packages/server/skills/error-handling/SKILL.md) |

A scan is named by the exact content it read, not by a version number. A different version is a different artifact, and nothing here applies to a version AIR has not scanned.

[Read the full security report for tRPC -- Error Handling](/security/error-handling)

## About tRPC -- Error Handling

This covers throwing typed errors with TRPCError and error codes such as NOT_FOUND, UNAUTHORIZED, BAD_REQUEST and INTERNAL_SERVER_ERROR.

It configures an errorFormatter so Zod errors can be displayed on the client, handles errors globally with an onError callback, and maps tRPC errors to HTTP status codes with getHTTPStatusCodeFromError().

## What's inside

- SKILL.md - instructions

## Questions

### Is tRPC -- Error Handling safe to install?

AIR scanned this exact version of tRPC -- Error Handling and flagged nothing. AIR's verdict: safe. The verdict is named by the content that was read, at commit 23c723cfeaf0, so it cannot drift onto a version nobody scanned. The full report is at https://airmarket.ai/security/error-handling.

### How do I install tRPC -- Error Handling?

Open https://airmarket.ai/app/error-handling on Air Market and use the install action: Air Market hands Claude a prompt naming this exact skill, and Claude sets it up. Source, pinned to the exact commit this listing describes: https://github.com/trpc/trpc/tree/23c723cfeaf07da28a52a5c35c3dcccf96a47578/packages/server/skills/error-handling. Install from that link, not the branch.

## Related on Air Market

- [More Developer Tools listings](/category/devtools)
- [Everything by tRPC](/@trpc)

---

Canonical URL: <https://airmarket.ai/app/error-handling>
