Skip to content

Commit 43e306e

Browse files
author
ochafik
committed
server: fix error status
1 parent d07387c commit 43e306e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2474,7 +2474,7 @@ static void respond(httplib::Response & res, httplib::DataSink * sink, int statu
24742474
}
24752475

24762476
static void res_error(httplib::Response & res, httplib::DataSink * sink, const json & error_data) {
2477-
respond(res, sink, 200, {{"error", error_data}});
2477+
respond(res, sink, 500, {{"error", error_data}});
24782478
}
24792479

24802480
static void res_ok(httplib::Response & res, httplib::DataSink * sink, const json & data) {

0 commit comments

Comments
 (0)