WIP: fix: respond with JSON Resource Descriptor Content-Type per RFC7033 #2

Draft
realaravinth wants to merge 2 commits from tasks-598 into forgejo

2 commits