Added 401 error to protocol implementation