From 18b76dabd2f2a13ed43c3caa096fb3f3f121605d Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sat, 4 Feb 2023 16:19:39 -0800 Subject: [PATCH] Use proper response status code for error --- buttcoin/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buttcoin/index.js b/buttcoin/index.js index 1699bbc..fc398bf 100644 --- a/buttcoin/index.js +++ b/buttcoin/index.js @@ -52,7 +52,7 @@ export default { remoteUrl = new URL(queryString); } catch { - return new Response('Invalid URL provided in query string.'); + return new Response('Invalid URL provided in query string.', { status: 400 }); } const response = await fetch(remoteUrl); -- 2.47.3