---
title: "Discussion on \"Problem Details - The right way to specify errors in Web API responses\" | Hashnode"
description: "Discussion on \"Problem Details - The right way to specify errors in Web API responses\". The need for Problem Details\nOften when you are developing REST APIs, one of the tough conversations to have with the consumers of your API (web client, mobile app, other 3rd parties, etc.) is defining the way your API would specify errors. Now, this..."
url: "https://hashnode.com/posts/problem-details-the-right-way-to-specify-errors-in-web-api-responses/6058210c5f8d5121697286a0"
---

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

Discussion

# [Problem Details - The right way to specify errors in Web API responses](https://kumarashwinhubert.com/problem-details-the-right-way-to-specify-errors-in-web-api-responses?utm_source=hashnode&utm_medium=feed)

The need for Problem Details Often when you are developing REST APIs, one of the tough conversations to have with the consumers of your API (web client, mobile app, other 3rd parties, etc.) is defining the way your API would specify errors. Now, this...

Mar 22, 2021 · 8 min read · kumarashwinhubert.com  
Read the article

-   [#net](https://hashnode.com/tag/net)
-   [#error-handling](https://hashnode.com/tag/error-handling)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Kumar Ashwin Hubert](https://hashnode.com/@kumar-ashwin-hubert)

@kumar-ashwin-hubert · India

  
[View profile](https://hashnode.com/@kumar-ashwin-hubert)

I'm a software consultant who loves to build projects and share my learnings on this blog.

## Responses 1

Markdown supported · ⌘↵ to post

[S3Kglitches](https://hashnode.com/@S3Kglitches)

[Dec 4, 2022](https://hashnode.com/posts/problem-details-the-right-way-to-specify-errors-in-web-api-responses/6058210c5f8d5121697286a0/comment/638ca29464b7288d8d8e5a17)

So how to provide the Details field in the ProblemDetails object when returning NotFound()?
