---
title: "Discussion on \"Generated Clients and Error Responses: Typing 4xx/5xx Bodies Instead of Throwing Blind\" | Hashnode"
description: "Discussion on \"Generated Clients and Error Responses: Typing 4xx/5xx Bodies Instead of Throwing Blind\". Generated Clients and Error Responses: Typing 4xx/5xx Bodies Instead of Throwing Blind — a practical, contract-based look at the failure mode and how to handle it."
url: "https://hashnode.com/posts/codegen-error-responses-typed-exceptions/6ae991715a71ad06bd94d1da"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Generated Clients and Error Responses: Typing 4xx/5xx Bodies Instead of Throwing Blind](https://blogs.powerduck.com/codegen-error-responses-typed-exceptions?utm_source=hashnode&utm_medium=feed)

Generated Clients and Error Responses: Typing 4xx/5xx Bodies Instead of Throwing Blind — a practical, contract-based look at the failure mode and how to handle it.

Nov 3 · 5 min read · blogs.powerduck.com  
Read the article

-   [#openapi](https://hashnode.com/tag/openapi)
-   [#codegen](https://hashnode.com/tag/codegen)
-   [#developers](https://hashnode.com/tag/developers)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
