---
title: "Discussion on \"How to Avoid Duplicate 404 Code in .NET Core APIs - Part 3\" | Hashnode"
description: "Discussion on \"How to Avoid Duplicate 404 Code in .NET Core APIs - Part 3\". Part 1 \n Part 2 \nThe Current Problem\nIt's great that we can now have all of our 404 Entity Not Found code be generic so that it can be used for all top-level resources. The issue is, we now are making a call to the database in the EntityNotFound attr..."
url: "https://hashnode.com/posts/how-to-avoid-duplicate-404-code-in-net-core-apis-part-3/615f62548e8734462af5d6bc"
---

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

Discussion

# [How to Avoid Duplicate 404 Code in .NET Core APIs - Part 3](https://thedoodledad.hashnode.dev/how-to-avoid-duplicate-404-code-in-net-core-apis-part-3?utm_source=hashnode&utm_medium=feed)

Part 1 Part 2 The Current Problem It's great that we can now have all of our 404 Entity Not Found code be generic so that it can be used for all top-level resources. The issue is, we now are making a call to the database in the EntityNotFound attr...

Oct 7, 2021 · 3 min read · thedoodledad.hashnode.dev  
Read the article

-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#dotnetcore](https://hashnode.com/tag/dotnetcore)
-   [#clean-code](https://hashnode.com/tag/clean-code)
-   [#apis](https://hashnode.com/tag/apis)
-   [#rest-api](https://hashnode.com/tag/rest-api)

## Written by

[Michael Welte](https://hashnode.com/@TheDoodleDadDev)

@TheDoodleDadDev · Warrington, PA

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

Software Engineer by day, doodle dad by night

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
