Skip to content

Commit ced4160

Browse files
authored
add http status code 201 to show the right status message in return headers (#402)
1 parent 5b51aa6 commit ced4160

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

httplib.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,6 +1599,7 @@ inline const char *status_message(int status) {
15991599
switch (status) {
16001600
case 100: return "Continue";
16011601
case 200: return "OK";
1602+
case 201: return "Created";
16021603
case 202: return "Accepted";
16031604
case 204: return "No Content";
16041605
case 206: return "Partial Content";

0 commit comments

Comments
 (0)