Merge pull request #208 from protomaps/lambda-501

aws: return 501 instead of 400 if no PUBLIC_HOSTNAME configured
This commit is contained in:
Brandon Liu
2023-06-23 20:57:59 +08:00
committed by GitHub

View File

@@ -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