You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ImATeapot (418) problem details use the type, title, and detail of a 500 #95
ErrorCategory.ImATeapot (418) is missing from the switch expressions of GetTypeUri, GetTitle, and GetDetail in src/Light.PortableResults/Http/ErrorCategoryExtensionsForHttp.cs, so all three fall back to their default arms.
ToHttpStatusCode() correctly returns 418. A failed result whose leading category is ImATeapot therefore produces a 418 response, but the Problem Details carry the values of a 500:
ImATeapot gets its own type URI (RFC 9110 section 15.5.19), title (I'm a teapot), and detail. A test should cover that every defined ErrorCategory member has a dedicated entry in all three methods, so that future categories cannot fall through to the defaults unnoticed.
Activity
docs: move AGENTS.md discoveries to GitHub issues #94, #95, and #96