Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
39a17f8a
Commit
39a17f8a
authored
Nov 01, 2016
by
Deomid Ryabkov
Committed by
Cesanta Bot
Nov 01, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add text msgs for HTTP status codes 400 and 503
PUBLISHED_FROM=1bd3308933354e147c4e8aa375728a1ede6d8ab4
parent
78454da3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
mongoose.c
mongoose.c
+4
-0
No files found.
mongoose.c
View file @
39a17f8a
...
@@ -5106,6 +5106,8 @@ const char *mg_status_message(int status_code) {
...
@@ -5106,6 +5106,8 @@ const char *mg_status_message(int status_code) {
return
"Moved"
;
return
"Moved"
;
case
302
:
case
302
:
return
"Found"
;
return
"Found"
;
case
400
:
return
"Bad Request"
;
case
401
:
case
401
:
return
"Unauthorized"
;
return
"Unauthorized"
;
case
403
:
case
403
:
...
@@ -5120,6 +5122,8 @@ const char *mg_status_message(int status_code) {
...
@@ -5120,6 +5122,8 @@ const char *mg_status_message(int status_code) {
return
"Internal Server Error"
;
return
"Internal Server Error"
;
case
502
:
case
502
:
return
"Bad Gateway"
;
return
"Bad Gateway"
;
case
503
:
return
"Service Unavailable"
;
default:
default:
return
"OK"
;
return
"OK"
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment