From 0cac52741b0a3053cdd768b5b18de9db03462b96 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Fri, 23 Jun 2023 20:22:46 +0800 Subject: [PATCH] aws: return 501 instead of 400 if no PUBLIC_HOSTNAME configured for TileJSON --- serverless/aws/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serverless/aws/src/index.ts b/serverless/aws/src/index.ts index 248f492..5c292ab 100644 --- a/serverless/aws/src/index.ts +++ b/serverless/aws/src/index.ts @@ -136,7 +136,7 @@ export const handlerRaw = async ( if (!tile) { if (!process.env.PUBLIC_HOSTNAME) { return apiResp( - 400, + 501, "PUBLIC_HOSTNAME must be set for TileJSON", false, headers