BEYOND Status Codes! Better REST HTTP API Error Responses

テクノロジー



How do you tell your API Consumers explicitly if there are errors or problems with their request? Everyone creating HTTP APIs seems to implement error responses differently. Wouldn’t it be great if HTTP API Errors had a standard? Well there is! It’s called Problem Details (https://tools.ietf.org/html/rfc7807)

🔔 Subscribe: https://www.youtube.com/channel/UC3RKA4vunFAfrfxiJhPEplw?sub_confirmation=1

💥 Join this channel to get access to source code & demos!
https://www.youtube.com/channel/UC3RKA4vunFAfrfxiJhPEplw/join

🔥 Don’t have the JOIN button? Support me on Patreon!
https://www.patreon.com/codeopinion

📝 Blog: https://codeopinion.com
👋 Twitter: https://twitter.com/codeopinion
✨ LinkedIn: https://www.linkedin.com/in/dcomartin/

0:00 Error Examples
1:46 Problem Details
5:01 ASP.NET Core Controllers
6:21 Middleware

Hellang.Middleware.ProblemDetails 6.5.1
Error handling middleware, using RFC7807

#softwarearchitecture #httpapi #restapi

Comments

Copied title and URL