             if pwdExist
                 db.save @body, (err, res) ->
                     if err
-                        railway.logger.write "[Create] err: #{err}"
-                        send 500
+                        railway.logger.write "[createAccount] err: #{err}"
+                        send 50
                     else
                         send _id: res._id, 201
             else

            callback false, new Error("master key and slave key don't exist")
    else
        callback false


# POST /accounts/password/

        else
            send 404
, only: ['findAccount', 'updateAccount', 'mergeAccount', 'deleteAccount']


# helpers
encryptPassword = (callback)->
