Mongoose dup error status code fix

Mongoose error `E1100 duplication key` results `HTTP 1100` this patch aims to fix that by adding a check. I also wanted to write test case but the whole test suit is broken for me. I'll try to fix it in separate merge request.