Set 404 as defautl status code and set the proper status code fir the response at very same time that the response body
This commit is contained in:
@@ -202,6 +202,7 @@ function createLayergroup (mapBackend, userLimitsBackend, pgConnection, affected
|
||||
return next(err);
|
||||
}
|
||||
|
||||
res.statusCode = 200;
|
||||
res.body = layergroup;
|
||||
res.locals.mapConfigProvider = mapConfigProvider;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user