Update api.php

This commit is contained in:
Namhyeon, Go
2024-11-14 14:35:13 +09:00
committed by GitHub
parent a33000f3d7
commit 43ae649f8b
+1 -1
View File
@@ -25,7 +25,7 @@
$results = fetch_search_results($opts, false);
if (array_key_exists("error", $results)) {
http_response_code(418); // I'm a teapot
http_response_code(500);
}
header("Content-Type: application/json");
echo json_encode($results);