mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
Send proper HTTP status code for failed files
This commit is contained in:
parent
149eeb6277
commit
ab671917f7
1 changed files with 4 additions and 1 deletions
|
|
@ -107,7 +107,10 @@ var Server = {
|
|||
}
|
||||
// Something actually went wrong
|
||||
else {
|
||||
res.send(500);
|
||||
// Status codes over 500 are server errors
|
||||
if(err.status >= 500)
|
||||
Logger.errlog.log(err);
|
||||
res.send(err.status);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue