code: function (error) {
                if (error.status === 404) {
                  return sessions.add({
                    account: {
                      username: username,
                      password: password
                    },
                    include: query.include
                  })
                    .catch(function (error) {
                      if (error.status === 404) {
                        throw errors.INVALID_CREDENTIALS
                      }
                      throw error
                    })
                }
  
                throw error
              }
docs: if not admin