Update method visibility to public for AbstractResponse::withError()