---
title: "Comment by Damien Garrido on \"Fastify Fundamentals: How to Validate API Responses\" | Hashnode"
description: "I would also respond with an HTTP 400 for a failed request validation (and an HTTP 500 for a failed response validation)."
url: "https://hashnode.com/posts/fastify-fundamentals-how-to-validate-api-responses/65d892adc201f4056cf6ee9b/comment/66715de93c4361919ff75c73"
---

[Discussion](https://hashnode.com/posts/fastify-fundamentals-how-to-validate-api-responses/65d892adc201f4056cf6ee9b)

Comment [Fastify Fundamentals: How to Validate API Responses](https://hashnode.com/posts/fastify-fundamentals-how-to-validate-api-responses/65d892adc201f4056cf6ee9b)

[Damien Garrido](https://hashnode.com/@damiengarrido)

[Jun 18, 2024](https://hashnode.com/posts/fastify-fundamentals-how-to-validate-api-responses/65d892adc201f4056cf6ee9b/comment/66715de93c4361919ff75c73)

I would also respond with an HTTP 400 for a failed request validation (and an HTTP 500 for a failed response validation).
