minor fixes, added new http status
MODIFY
packages/core/src/http.interface.ts
packages/core/src/http.interface.ts
@@ -25,6 +25,7 @@ export enum HttpStatus {
CREATED = 201,
ACCEPTED = 202,
NO_CONTENT = 204,
+ NOT_MODIFIED = 304,
BAD_REQUEST = 400,
UNAUTHORIZED = 401,
FORBIDDEN = 403,

MODIFY
packages/core/src/middlewares/bodyParser.middleware.ts
packages/core/src/middlewares/bodyParser.middleware.ts
@@ -49,7 +49,7 @@ export const bodyParser$: Effect<HttpRequest> = (request$, response) => request$
? of(req).pipe(
switchMap(getBody),
tap(body => req.body = body),
- map(body => req),
+ map(() => req),
catchError(error => throwError(new HttpError('Request body parse error', HttpStatus.BAD_REQUEST)))
)
: of(req)

minor fixes, added new http status