Wrote an AWS Lambda function to implement a proper endpoint for .well-known/webfinger to replace my quick-fix solution that served a static JSON file so it’s not catch-all and returns proper HTTP errors: AlexKobachiJP/sample-code-swift-aws-lambda.

Of course, using the Swift runtime.