Use error code 500 for "Requested data is inaccessible" errors.

GitOrigin-RevId: 2d39f90cd196f508b288089433ba2f066b5fcb22
This commit is contained in:
levlam 2020-10-18 01:03:16 +03:00
parent 7b4afb7673
commit 5fc7a7727e

View File

@ -51,7 +51,7 @@ class RequestActor : public Actor {
CHECK(future.get_state() == FutureActor<T>::State::Waiting);
if (--tries_left_ == 0) {
future.close();
do_send_error(Status::Error(400, "Requested data is inaccessible"));
do_send_error(Status::Error(500, "Requested data is inaccessible"));
return stop();
}