aborted instead of created

This commit is contained in:
int2001
2024-12-29 09:22:26 +00:00
parent 2015635d22
commit 58402a3b05

View File

@@ -240,7 +240,7 @@ class API extends CI_Controller {
} else {
$return_msg[]=$custom_errors;
http_response_code(400);
echo json_encode(['status' => 'created', 'type' => $obj['type'], 'string' => $obj['string'], 'adif_count' => $adif_count, 'adif_errors' => $adif_errors, 'messages' => $return_msg ]);
echo json_encode(['status' => 'abort', 'type' => $obj['type'], 'string' => $obj['string'], 'adif_count' => $adif_count, 'adif_errors' => $adif_errors, 'messages' => $return_msg ]);
}