]> git.ardis.lu - cloudflare-workers/commitdiff
Use proper response status code for error
authorArdis Lu <ardisglu@gmail.com>
Sun, 5 Feb 2023 00:19:39 +0000 (16:19 -0800)
committerArdis Lu <ardisglu@gmail.com>
Sun, 5 Feb 2023 00:19:39 +0000 (16:19 -0800)
buttcoin/index.js

index 1699bbc963466c9dfa4cc8fe6893f75b4de74926..fc398bfb475aed63652072dacff483338c3baa2c 100644 (file)
@@ -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);
This page took 0.037462 seconds and 4 git commands to generate.