rejectEmptyResponse produces 401

I have the following directive structure

path(Segment) { fooId =>
        concat(
          get {
            handleErrorsAndReport("get_foo") {
              rejectEmptyResponse(
                complete(
                    fooRepository
                    .find(fooId)
                    .map(FooOps.toFooModel)
                )
              )
            }
          },
          seal(
            authenticateBasic(
              realm = "Secure foo",
              scopesAuthenticator
            ) { scopes =>
              concat(
              ...
              )
            }
          )
        )
      }

When the find method of the get_foo endpoint returns None - so the end result is complete(None) - the status code is 401 Unauthorized… I have no idea how can this be… Any ideas?