My FeedDiscussionsHashnode Enterprise
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Matteo Collina

1.1K reads

2 comments

Damien Garrido
Damien Garrido
Jun 18, 2024

Shouldn't this article be entitled "How to validate API requests"?

·
Damien Garrido
Damien Garrido
Jun 18, 2024

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

·