added error code for duplicate key from mongoose
response with proper error code.
Merge pull request #3 from iapain/mongoose_dup_error_fix

Mongoose dup error status code fix